o6web / favicon-collection
Package for building a collection of favicons from a base image
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/o6web/favicon-collection
Requires
- php: >=7.4.0
- ext-zip: *
- cjrasmussen/color: ^2.0.0
- cjrasmussen/image: ^2.2.0
- shopblocks/php-ico: ^1.1.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
Usage
use o6web\FaviconCollection\Builder; $builder = new Builder(new IcoConverter()); $builder->build($sourceFilePath, $backgroundColorHex, $gutterSpace, $arrayOfValidSizes, $shouldGenerateFaviconIco); if ($builder->hasOutputFiles()) { $builder->zipOutputFiles($outputFilePath); // archive the output files to the specified zip }
Installation
Simply add a dependency on o6web/favicon-collection to your composer.json file if you use Composer to manage the dependencies of your project:
composer require o6web/favicon-collection
Although it's recommended to use Composer, you can actually include the file(s) any way you want.
License
FaviconCollection is MIT licensed.