An open API service indexing awesome lists of open source software.

https://github.com/nhedger/laravel-envicon

Display a custom favicon that depends on your runtime environment.
https://github.com/nhedger/laravel-envicon

environment favicon favicon-dynamic laravel laravel-package

Last synced: about 1 month ago
JSON representation

Display a custom favicon that depends on your runtime environment.

Awesome Lists containing this project

README

        

# Laravel Envicon



Support Laravel versions
Latest Version on Packagist
Software License
GitHub Workflow Status

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

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

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

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

```shell script
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.

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

## Usage

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

```blade



```

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.

```blade



```

## Testing
Tests can be run using the following composer script.
```shell script
composer test
```

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

[ico-version]: https://img.shields.io/packagist/v/hedger/laravel-envicon.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-build]: https://img.shields.io/github/workflow/status/nhedger/laravel-envicon/Test/master?style=flat-square
[screenshot]: .github/screenshot.png

[link-packagist]: https://packagist.org/packages/hedger/laravel-envicon