Download the PHP package heimrichhannot/elegant-icons without Composer

On this page you can find all versions of the php package heimrichhannot/elegant-icons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package elegant-icons

This repo in abandoned!

Elegant Icon Font

Composer/Component Package to provide the famous elegant icon font library containin 360 icons with less support. Created by: http://www.elegantthemes.com/blog/resources/elegant-icon-font

Icon list

See demo/demo.html for full list of icons or visit http://www.elegantthemes.com/blog/resources/elegant-icon-font.

Sass Usage

  1. Import elegant-icons-sass in your code:

By default, only the woff and woff2 formats (Why?) of the fonts will be pulled from a CDN (using RawGit). If you want to use different formats and/or local fonts, check the Customization section below.

Usage

To use the icons, you will need their names, which you can find here (right after the unicode reference list).

The unicode references of the above list are meant to be used as data-icon, which the support has been removed in this sass version, because it‘s considered a bad practice due to performance issues. If you wish to use this way, you must define it yourself.

On the list, you will find that almost all icons have an icon_ prefix in their names, which seems to be redundant and unnecessary. In this Sass version, you can omit it (as done in the exemples below), but for backwards compatibility they are still valid selectors for all usage types (mixin, placeholder or class).

By default, the icon will be defined as a ::before pseude-element. If you wish to change this default, check the Customization section below.

As a mixin

Include the mixin in your selector:

You can override the icon's default placement by passing it as a second parameter:

As a placeholder

Extend the your selector with the placeholder:

When using as a placeholder, the prefix ei- must be used. Check the Customization section below on how to change or remove this prefix.

As a class

If you just want to use it as a class, you MUST ACTIVATE the class generation first (Check the Customization section below on how to activate it.)

After activated, you can simply set the icon class name to your html element:

When using as a class, the prefix ei- must be used. Check the Customization section below on how to change or remove this prefix.

Customization

This sass version of the Elegant Icons defines a few defaults, which are considered best practices or common use cases. If you wish to override them, here is how:

The overrides below, must be done BEFORE the import explained in the Step 2 of the Usage section.

Activate class selectors

Using a different selector prefix:

If you don‘t want to use a prefix, set it to an empty string: $ei-icon-prefix: '';

Set the icons placement as ::after:

The $ei-default-placement variable can only be set as 'before' or 'after' which will define it as a ::before or an ::after pseudo-element, respectively.

Using different font formats:

You can define any formats combination that you need from the available formats on example list above.

Using local fonts

  1. Activate the local font usage:

  2. Override the font path variable:

    Please note that the path above must be relative to the generated CSS file, since it is used as a normal src: url() in an @font-face definition.

  3. (Optionally) change the font file name:

    If you‘re just copying the font files and not renaming them, don‘t override this.

  4. (Optionally) change the font family name:

    Override only if you somehow wish to have a different font-family name defined to the icons font.

You might need to copy the font files yourself from the node_modules/elegant-icons-sass/fonts folder. You can use your build system of choice for that.

Original image files

The original image files (in SVG and PNG) can be found in the repo's image folder.


All versions of elegant-icons with dependencies

PHP Build Version
Package Version
Requires contao-components/installer Version ^1.0.9
contao/core-bundle Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package heimrichhannot/elegant-icons contains the following files

Loading the files please wait ....