lukasmu/laravel-favicon

Add pretty favicons to your Laravel application on the fly

v1.0.6 2023-04-20 10:40 UTC

This package is auto-updated.

Last update: 2024-11-20 14:23:06 UTC


README

Latest Version on Packagist tests Quality Score Total Downloads Coverage Status

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.