PHPackages                             magarrent/laravel-favicon-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. magarrent/laravel-favicon-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

magarrent/laravel-favicon-generator
===================================

Generate and render favicons from Images

1.0.0(3y ago)197214MITPHPPHP ^8.1

Since Dec 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/magarrent/laravel-favicon-generator)[ Packagist](https://packagist.org/packages/magarrent/laravel-favicon-generator)[ Docs](https://github.com/magarrent/favicon-generator)[ RSS](/packages/magarrent-laravel-favicon-generator/feed)WikiDiscussions master Synced yesterday

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

Generate favicons from Images
=============================

[](#generate-favicons-from-images)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f832b3b7ed997111ef90aedf3bb8d375f00c6dd2867a81fcecc999d50aba97a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6167617272656e742f6c61726176656c2d66617669636f6e2d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/magarrent/laravel-favicon-generator)

Installation
------------

[](#installation)

```
Requires PHP Imagick

```

You can install the package via composer:

```
composer require magarrent/favicon-generator
```

Usage
-----

[](#usage)

To use your own image and convert it to the different favicons versions, use these methods. This will generate a "favicon" folder to your public\_path with the different favicons formats and versions. Will also generate some XML and webmanifest according to the web standards.

---

Use this methods in your own scenario, when you upload the image, or just a console command, whatever. Just write your input path and optionally the public output path. If you don't specify the output (2nd param), the favicons will be saved in `public/favicons`

```
$favicon = new FaviconGenerator('path-to-your-image', 'optional-public-dist-path');
$favicon->generateFaviconsFromImagePath();
```

Once you generated the icons, just write these line into your `` section of your **HTML**

```
{!! \Magarrent\FaviconGenerator\FaviconGenerator::generateHtmlMetaIcons() !!}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Roadmap
-------

[](#roadmap)

- Tests
- Generate icons from Image class, not from String path

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Marc Garcia Torrent](https://github.com/magarrent)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

1284d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6561770?v=4)[Marc Garcia Torrent](/maintainers/magarrent)[@magarrent](https://github.com/magarrent)

---

Top Contributors

[![magarrent](https://avatars.githubusercontent.com/u/6561770?v=4)](https://github.com/magarrent "magarrent (3 commits)")

---

Tags

laravelfavicon-generatormagarrent

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/magarrent-laravel-favicon-generator/health.svg)

```
[![Health](https://phpackages.com/badges/magarrent-laravel-favicon-generator/health.svg)](https://phpackages.com/packages/magarrent-laravel-favicon-generator)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

3218.1k](/packages/danihidayatx-image-optimizer)

PHPackages © 2026

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