PHPackages                             laradic/icon-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. laradic/icon-generator

ActiveLibrary[Image &amp; Media](/categories/media)

laradic/icon-generator
======================

Generate FontAwesome, Foundation Icons or any custom icon font icons to multiple size and color image files like .ico/.png

1.0.0(9y ago)32931MITPHPPHP &gt;=5.5.9

Since Aug 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/laradic/icon-generator)[ Packagist](https://packagist.org/packages/laradic/icon-generator)[ Docs](https://la.radic.nl)[ RSS](/packages/laradic-icon-generator/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Laradic Icon Generator
======================

[](#laradic-icon-generator)

[![Source](https://camo.githubusercontent.com/2244eedd22f5958823a73148a8ada86dfbb2d7b7e607be24f5831048ba913810/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6c6172616469632f69636f6e2d2d67656e657261746f722d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/laradic/icon-generator)[![License](https://camo.githubusercontent.com/6a2572dafac6d22afec31dec7587a0e669706344366f564500cf557e816b1714/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)[![Framework](https://camo.githubusercontent.com/1959059109aca1c22acba1cf2cba5a72a3a9bdff682169c3a71d7379040d49a3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6672616d65776f726b2d616e792d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1959059109aca1c22acba1cf2cba5a72a3a9bdff682169c3a71d7379040d49a3/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6672616d65776f726b2d616e792d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)

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
------------

[](#installation)

```
composer require "laradic/icon-generator:~1.0"
```

Quick Overview
--------------

[](#quick-overview)

**Full documenation** @ [la.radic.nl](https://la.radic.nl)

### Using the API

[](#using-the-api)

The factory is the place where you can register custom fonts. Laradic Icon Generator comes packed with [Font Awesome](http://fontawesome.io) and [Foundation Icons](http://zurb.com/playground/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.

```
/** @var \Laradic\IconGenerator\IconGenerator $generator */
$generator = (new \Laradic\IconGenerator\Factory)
                ->addDefaultFonts()
                ->createGenerator('font-awesome');

$generator->setIcons('android', 'car')
            ->setSizes(16, 32, 64, 128)
            ->addColor('#42A5F5') // blue 400
            ->addColor('#424242') // grey 800
            ->addColor(251, 94, 11) // RGB Also supported
            ->setOutDir(__DIR__ . '/generated-icons')
            ->generate();
```

There's also a **shorthand** method available `\Laradic\IconGenerator\Factory::generate($font, array $icons, array $sizes, array $colors, $outDir = null)`

```
(new Factory())
    ->addDefaultFonts()
    ->generate($font, array $icons, array $sizes, array $colors, $outDir = null);
```

### Laravel

[](#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

[](#binding)

```
$generator = app('laradic.icon-generator')
                ->addDefaultFonts()
                ->createGenerator('font-awesome');
// other code remains the same
```

#### Facade

[](#facade)

Optionally, you could add the facade and use that for accessing the factory.

```
$generator = IconGenerator::addDefaultFonts()->createGenerator('font-awesome');
```

#### Command

[](#command)

Another way to create fonts is using the command.

```
Usage:
  laradic:icon:generate [options] [--]  []
  laradic:icon:generate font-awesome ./ -i car -i book -s 16 -s 32 -s 128 -c 424242 -c 42A5F5

Arguments:
  font                  The icon font you would like to use
  outDir                Path to the directory the icons should be generated in. [default: "resources/assets/icons"]

Options:
  -i, --icons=ICONS     Icons to generate. One or more icon names (multiple values allowed)
  -s, --sizes=SIZES     The sizes to generate. One or more numeric values (multiple values allowed)
  -c, --colors=COLORS   The colors to generate. Either RGB or HEX (multiple values allowed)
  -l, --list            List all available fonts
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3608d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/303828383a9c2bf382436a61f4471425428b28c095c6df9a9714444cbc163538?d=identicon)[radic](/maintainers/radic)

---

Tags

laravelgeneratoriconsfoundationiconfont-awesomeFontAwesomelaradicfoundation-icons

### Embed Badge

![Health badge](/badges/laradic-icon-generator/health.svg)

```
[![Health](https://phpackages.com/badges/laradic-icon-generator/health.svg)](https://phpackages.com/packages/laradic-icon-generator)
```

###  Alternatives

[jkphl/iconizr

A PHP command line tool for converting SVG images to a set of CSS icons (SVG &amp; PNG, single icons and / or CSS sprites) with support for image optimization and Sass output

4869.0k](/packages/jkphl-iconizr)[lara-zeus/qr

Zeus Qr Code Input to generate Qr Code with designing options for filamentPHP

5863.5k](/packages/lara-zeus-qr)[fortawesome/wordpress-fontawesome

Official Font Awesome WordPress plugin composer package.

682.1k](/packages/fortawesome-wordpress-fontawesome)[swissup/module-font-awesome

FontAwesome for Magento2

117.1k1](/packages/swissup-module-font-awesome)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
