lukasmu / laravel-favicon
Add pretty favicons to your Laravel application on the fly
Requires
- php: ^7.3|^8.0
- ext-gd: *
- intervention/image: ^2.4.2
- laravel/framework: ^6.0|^7.0|^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench-browser-kit: ^4.0|^5.0|^6.0|^7.0|^8.0
- phpunit/phpunit: ^8.0|^9.0|^10.0
README
This package can be used to quickly generate customized and high-quality favicons for your Laravel application. The images are generated on the fly for different platforms and display resolutions. Usage is super simple and just requires including a view in your templates (see below).
Please note that this package is based on beyondcode/laravel-favicon but serves a completely different purpose.
Installation
You can install the package via composer:
composer require lukasmu/laravel-favicon
Usage
To add the icons to your site include the view favicon::head
in the head section of your blade view(s).
<!doctype html> <html> <head> <title>Example</title> @include('favicon::head') ... </head> <body> ... </body> </html>
Customization
You can publish the 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 favicons.
Testing
You can run all tests via composer as well:
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hello@lukasmu.com instead of using the issue tracker.
Postcardware
You are free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown. The address is: Lukas Müller, Dirklangendwarsstraat 5, 2611HZ Delft, The Netherlands.
License
The MIT License (MIT). Please see LICENSE for more information.