-
Notifications
You must be signed in to change notification settings - Fork 1
Docs
XVIID edited this page Nov 29, 2022
·
15 revisions
It supports:
- Create one ICO file and many PNG files with many favicon sizes from just one original PNG image as well as a
manifest.jsonfile for Android devices. Both input file path and output folder (which contains images and json files) are configurable via a command line interface. - Generate suitable
metaandlinktags for desktop web browsers as well as mobile touch devices to properly display favicon.
CI4Favicons has the following requirements:
- PHP 7.4+
- PHP GD
- CodeIgniter Framework
CI4Favicons generates the following sizes:
- favicon: 16x16, 32x32 and 96x96.
- android-chrome: 36x36, 48x48, 72x72, 96x96, 144x144 and 192x192.
- mstile: 70x70, 144x144, 150x150, 310x310 and 310x150.
- apple-touch-icon: 57x57, 60x60, 72x72, 76x76, 114x114, 120x120, 152x152 and 180x180.
Can I custom my size? No, you can request it on the ISSUES page
-
ci4favicons:publishto start and copy the CI4Favicons Config file to your application. -
ci4favicons:generateto generate favicon. -
ci4favicons:helpto show help.
Once downloaded, unzip the compressed folder and youโll see something like this:
ci4favicons/
โโโ src/
โ โโโ CI4Favicons.php
โ โโโ AbstractCI4Favicons.php
โ โโโ CI4FaviconsInterface.php
โโโโโโโ Config
โ โโโ CI4Favicons.php
โ โโโ Services.php
โโโโโโโ Commands
โ โโโ CI4FaviconsPublish.php
โ โโโ CI4FaviconsGenerate.php
โ โโโ CI4FaviconsHelp.php
โโโโโโโ Generates
โ โโโ HTMLGenerate.php
โ โโโ ImageGenerate.php
โโโโโโโ Language
โโโโโโโโโโโ en
โ โโโ CI4Favicons.php
โโโโโโโโโโโ id
โ โโโ CI4Favicons.php
โโโโโโโโโโโ ja
โ โโโ CI4Favicons.php
โโโโโโโโโโโ ru
โ โโโ CI4Favicons.php
โโโโโโโโโโโ es
โ โโโ CI4Favicons.php
โโโโโโโโโโโ de
โ โโโ CI4Favicons.php
โโโโโโโโโโโ tr
โ โโโ CI4Favicons.php
โโโโโโโโโโโ zh
โ โโโ CI4Favicons.php
โโโโโโโโโโโ fa
โ โโโ CI4Favicons.php
โโโโโโโ Traits
โ โโโ SizeTrait.php
โโโโโโโโโโโ ColorTrait.php
By default, CI4Favicons Language Supports:
- ๐ฌ๐ง English (en)
- ๐ฎ๐ฉ Indonesian (id)
- ๐ฏ๐ต Japanese (ja)
- ๐ท๐บ Russian (ru)
- ๐ฉ๐ช German (de)
- ๐ช๐ธ Spanish (es)
- ๐น๐ท Turkish (tr)
- ๐จ๐ณ Simplified Chinese (zh)
- ๐ฎ๐ท Persian (fa)
Powered by XVIID