PHPackages                             hedger/laravel-envicon - 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. hedger/laravel-envicon

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

hedger/laravel-envicon
======================

Use a different favicon depending on your current runtime environment

v2.0(2y ago)193.2k↓50%4[1 PRs](https://github.com/nhedger/laravel-envicon/pulls)MITPHPPHP ~8.0 || ~8.1 || ~8.2

Since Jun 10Pushed 8mo agoCompare

[ Source](https://github.com/nhedger/laravel-envicon)[ Packagist](https://packagist.org/packages/hedger/laravel-envicon)[ Docs](https://github.com/nhedger/envicon)[ RSS](/packages/hedger-laravel-envicon/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (9)Used By (0)

Laravel Envicon
===============

[](#laravel-envicon)

 [![](.github/screenshot.png)](.github/screenshot.png)

[![Support Laravel versions](https://camo.githubusercontent.com/3cc30d24cb5b89b385142db8aeae9f72d9cb6f98d49513f23aa350f4b207bc79/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d253230392e782532307c25323031302e782d4646324432302e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3cc30d24cb5b89b385142db8aeae9f72d9cb6f98d49513f23aa350f4b207bc79/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d253230392e782532307c25323031302e782d4646324432302e7376673f7374796c653d666c61742d737175617265)[![Latest Version on Packagist](https://camo.githubusercontent.com/701115a1d331d7ce687dbce17823ce4945e50fb644cb44049f5161145ebf4403/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865646765722f6c61726176656c2d656e7669636f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hedger/laravel-envicon)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Workflow Status](https://camo.githubusercontent.com/3bdd7710fb58719bd5c59bbc30d5e76803c06522d77e69cdd25ac6bdf1a434c5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6865646765722f6c61726176656c2d656e7669636f6e2f696e746567726174652e796d6c3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3bdd7710fb58719bd5c59bbc30d5e76803c06522d77e69cdd25ac6bdf1a434c5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6865646765722f6c61726176656c2d656e7669636f6e2f696e746567726174652e796d6c3f7374796c653d666c61742d737175617265)

This package allows you to display a custom favicon depending on your runtime environment. This makes it easy to identify immediately on which environment you're browsing.

Install
-------

[](#install)

Via [Composer](https://getcomposer.org/)

```
composer require hedger/laravel-envicon
```

Once the package is installed, you'll need to **publish the configuration**to link your environments to custom favicons.

```
php artisan vendor:publish --tag=envicon-config
```

If you want to use the default envicons provided by this package, run the following command that will copy them in your `public/favicons`folder.

```
php artisan vendor:publish --tag=envicon-favicons
```

Usage
-----

[](#usage)

Simply use the provided helper in place of your favicon's URL. This will return the favicon that matches your current **runtime environment**.

```

```

If you need the URL of a favicon for a **specific environment**, use the following statement instead. You'll need to pass the environment's name as the first parameter.

```

```

Testing
-------

[](#testing)

Tests can be run using the following composer script.

```
composer test
```

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance43

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~183 days

Recently: every ~274 days

Total

7

Last Release

1070d ago

Major Versions

v1.4 → v2.02023-06-13

PHP version history (3 changes)v1.0.0PHP ^7.2

v1.3PHP ~7.2 || ^8.0

v2.0PHP ~8.0 || ~8.1 || ~8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/853f42bc841970271b906306b0f5dd4f82b0e108200ccd58467dd426f6aee054?d=identicon)[nhedger](/maintainers/nhedger)

---

Top Contributors

[![nhedger](https://avatars.githubusercontent.com/u/649677?v=4)](https://github.com/nhedger "nhedger (47 commits)")[![mwkcoding](https://avatars.githubusercontent.com/u/16936030?v=4)](https://github.com/mwkcoding "mwkcoding (1 commits)")

---

Tags

environmentfaviconfavicon-dynamiclaravellaravel-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hedger-laravel-envicon/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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