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 1mo ago

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 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

1231d 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-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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