Download the PHP package blockpoint/laravel-favicon-generator without Composer
On this page you can find all versions of the php package blockpoint/laravel-favicon-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blockpoint/laravel-favicon-generator
More information about blockpoint/laravel-favicon-generator
Files in blockpoint/laravel-favicon-generator
Package laravel-favicon-generator
Short Description Package to generate favicons within your Laravel application.
License MIT
Homepage https://github.com/blockpoint/laravel-favicon-generator
Informations about the package laravel-favicon-generator
Laravel Favicon Generator
A Laravel package to generate and manage high-quality favicons for your web application. This package provides two main features:
- A generator to create all necessary favicon files from a single source image with optimal quality
- A Blade component to easily include the favicon meta tags in your HTML
Features
- Generates high-quality PNG icons using Imagick when available (with GD fallback)
- Creates favicon.ico, favicon-96x96.png, favicon.svg, apple-touch-icon-180x180.png
- Generates web app manifest icons (192x192 and 512x512)
- Creates site.webmanifest file
- Generates SVG favicon from any source image format
- Maintains aspect ratio while ensuring exact dimensions
Installation
You can install the package via composer:
You can publish the config file with:
Optionally, you can publish the views using:
Usage
Generating Favicons
To generate favicons from a source image, use the provided Artisan command:
This will generate the following favicon files in your public/favicon directory:
- favicon.ico for general browser support
- favicon-96x96.png for higher-resolution displays
- favicon.svg for scalable, high-quality vector images (if source is SVG)
- apple-touch-icon.png for iOS devices
- web-app-manifest-192x192.png and web-app-manifest-512x512.png for Progressive Web Apps
- site.webmanifest for PWA configuration
Using the Blade Component
To include the favicon meta tags in your HTML, add the following component to your layout file:
This will output the necessary meta tags for all generated favicons:
The component will automatically use the application name from your web manifest file or fall back to your Laravel app name configuration.
Programmatic Usage
You can also generate favicons programmatically:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-favicon-generator with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0
intervention/image Version ^3.0