Hi, that's a nice one 😃
Here's packagist and github.
Following the readme with all the informations:
flarum-favicon
flarum-favicon is a Flarum extension to add a favicon set to you forum.
Flarum is a free, open-source forum software built with PHP and Mithril.js.
Features
With flarum-favicon you can add a favicon pack, generated with RealFaviconGenerator.net, to your flarum forum.
It supports:
- The usual small favicon you see on the top of the browser tab, but also
- the Android, iOS and Windows Phone bookmarks, as well as
- Mac and Windows desktop bookmarks.
Install
The only way to get flarum-favicon is with composer: in your flarum folder run
composer require matpompili/flarum-favicon
Then enable it you administration panel. Done!
Configuration
You need to get a favicon pack with RealFaviconGenerator.net, which is free and highly customizable. After you chose all the icons, compression, interpolation and so on, you will be able to download the favicon pack as a zip file.
Now you will need to extract that zip file to a folder inside you flarum home, e.g myFavicons
.
Finally, in the admin panel, open flarum-favicon settings. You will need to put the name of the folder that's inside your flarum home folder. With reference to the previous example, it would be myFavicons
.
And that's it!
A little bonus: your logo in the header!
To use the high-res favicons to customize the header of your flarum (aka add a logo and a logotype), you can add the following css from the admin panel:
/*
*Customize the logo and the logotype
*/
//Import the font for the logotype from Google Font. I chose Rancho, you can choose whatever you want!
@import url(https://fonts.googleapis.com/css?family=Rancho);
//Now let's set the font and size of the title. You have to play with the font-size to get the best result.
.Header-title {
font-family: 'Rancho', cursive;
font-size: 2em;
}
//Now let's add the logo as a background to the title link
.Header-title > a {
//remove underline
text-decoration: none;
//leave some space to the logo
padding-left: 40px;
//direct link to your logo
background: url('https://www.mydomain.org/favicons/android-chrome-192x192.png');
//logo styling
background-size: contain;
background-repeat: no-repeat;
background-position-y: center;
}