Download the PHP package laradic/icon-generator without Composer
On this page you can find all versions of the php package laradic/icon-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laradic/icon-generator
More information about laradic/icon-generator
Files in laradic/icon-generator
Package icon-generator
Short Description Generate FontAwesome, Foundation Icons or any custom icon font icons to multiple size and color image files like .ico/.png
License MIT
Homepage https://la.radic.nl
Informations about the package icon-generator
Laradic Icon Generator
Laradic Icon Generator can create PNG images from several icon fonts like FontAwesome, Foundation Icons, etc. For example, useful for favicon generation.
This package does not require Laravel but it does provide a ServiceProvider
, Facade
access and a Console
command.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.
Installation
Quick Overview
Full documenation @ la.radic.nl
Using the API
The factory is the place where you can register custom fonts. Laradic Icon Generator comes packed with Font Awesome and Foundation Icons.
When the font you want to use has been added to the factory you can create a IconGenerator
for it which is responsible for generating the images.
There's also a shorthand method available \Laradic\IconGenerator\Factory::generate($font, array $icons, array $sizes, array $colors, $outDir = null)
Laravel
When using the Laravel Service Provider, the factory is bound as singleton in the container. So the example above can also be written like this.
Binding
Facade
Optionally, you could add the facade and use that for accessing the factory.
Command
Another way to create fonts is using the command.