PHPackages                             lukasmu/laravel-favicon - 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. lukasmu/laravel-favicon

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

lukasmu/laravel-favicon
=======================

Add pretty favicons to your Laravel application on the fly

v2.0.0(1y ago)0183MITPHPPHP ^8.2

Since Jan 28Pushed 1y agoCompare

[ Source](https://github.com/lukasmu/laravel-favicon)[ Packagist](https://packagist.org/packages/lukasmu/laravel-favicon)[ Docs](https://github.com/lukasmu/laravel-favicon)[ GitHub Sponsors](https://github.com/lukasmu)[ RSS](/packages/lukasmu-laravel-favicon/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (17)Versions (5)Used By (0)

Add pretty favicons to your Laravel application on the fly
==========================================================

[](#add-pretty-favicons-to-your-laravel-application-on-the-fly)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e363b24240c7406d1805620b07825bdf2d972aa6e8246bb98f6ca71018b2442a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756b61736d752f6c61726176656c2d66617669636f6e2e737667)](https://packagist.org/packages/lukasmu/laravel-favicon)[![GitHub Run Tests Action Status](https://camo.githubusercontent.com/d39eed20ead30110548dcfeb265a463b8179cbc384026f091b6528bfdd04b3d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756b61736d752f6c61726176656c2d66617669636f6e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/lukasmu/laravel-favicon/actions/workflows/run-tests.yml?query=branch%3Amain++)[![GitHub Format Code Action Status](https://camo.githubusercontent.com/c975a663d70c7ebaf4fa3f4b36fbe5b754418a0002e8939f53339958c9c6c6b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c756b61736d752f6c61726176656c2d66617669636f6e2f666f726d61742d636f64652e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65)](https://github.com/lukasmu/laravel-favicon/actions/workflows/format-code.yml?query=branch%3Amain++)[![Coverage Status](https://camo.githubusercontent.com/8e317b84e8534e7e5e9bb3f73c6e2186f9f58694a952e6ee87daee8a1d72eefd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c756b61736d752f6c61726176656c2d66617669636f6e2f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/lukasmu/laravel-favicon?branch=main)[![Total Downloads](https://camo.githubusercontent.com/878e94b849670c0074c6bb86ea48136d2add2a2443efc4ed237d88e98e7cf98c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c756b61736d752f6c61726176656c2d66617669636f6e2e737667)](https://packagist.org/packages/lukasmu/laravel-favicon)

This package can be used to quickly generate customized and high-quality [favicons](https://en.wikipedia.org/wiki/Favicon) for your [Laravel](https://laravel.com) application. The icons are generated on the fly for different platforms and display resolutions. Usage is super simple and just requires including a view component in your Blade templates.

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

[](#installation)

You can install the package via composer:

```
composer require lukasmu/laravel-favicon
```

Usage
-----

[](#usage)

Add the `` view component to the head section of your Blade templates:

```

    Example

    ...

...

```

When you use this package to production environments it is recommended invoke the following command to cache the most commonly requested favicons:

```
php artisan favicon:cache
```

You can undo the above command by invoking:

```
php artisan favicon:clear
```

Customization
-------------

[](#customization)

You may publish the `favicon.php` config file with:

```
php artisan vendor:publish --provider="LukasMu\Favicon\FaviconServiceProvider" --tag="config"
```

Feel free to set the appropriate environmental variables (or edit the config file) in order to customize the automatically generated favicons.

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Contributions are **welcome** and will be fully **credited**. Feedback is very much appreciated as well.

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

Testing
-------

[](#testing)

The package includes tests written for the [Pest](https://pestphp.com/) PHP testing framework which can be run by calling:

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email [hello@lukasmu.com](hello@lukasmu.com) instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lukas Müller](https://github.com/lukasmu)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance41

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 89.5% 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

Every ~496 days

Total

4

Last Release

486d ago

Major Versions

v1.0.6 → v2.0.02025-02-25

PHP version history (2 changes)v1.0.4PHP ^7.3|^8.0

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0073e8983854f6649e10c966d574195f7c1ccbd2a1744866522921546b9ee5d?d=identicon)[lukasmu](/maintainers/lukasmu)

---

Top Contributors

[![lukasmu](https://avatars.githubusercontent.com/u/28652053?v=4)](https://github.com/lukasmu "lukasmu (17 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

laravelgeneratorfaviconicontileapple-touch-icon

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.6k12.9M71](/packages/laravel-reverb)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)

PHPackages © 2026

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