Choose a favicon for your PHP project from a set of over 110 free BEAUBUS Favicons.

0.0.4 2023-05-29 16:56 UTC

This package is auto-updated.

Last update: 2024-06-29 19:14:06 UTC


BEAUBUS PHP Favicon package

Choose your favicon from 110+ free favicons. Each favicon is available in 12 sizes.


composer require beaubus/php-favicon



require __DIR__ . '/vendor/autoload.php';

$favicon = new \Beaubus\PhpFavicon('/path-to-the/public');
    'pocket watch', // Favicon name 
     true           // Check if the favicon has changed. Set it to 'false' once you have chosen and tested your favicon.

echo $favicon->tags();

That will output:

<link rel="apple-touch-icon" sizes="180x180" href="/beaubus-favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/beaubus-favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/beaubus-favicon/favicon-16x16.png">
<link rel="manifest" href="/beaubus-favicon/site.webmanifest">
<link rel="mask-icon" href="/beaubus-favicon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">


You can override default colors when generating tags

    'mask-icon' => '#5bbad5',
    'msapplication-TileColor' => '#2d89ef',
    'theme-color' => '#ffffff',

Available favicon names

Light bulb, Calendar, Folder, Flash drive, Printer, Scissors, Laptop, Ruler, Ring binders, Push Pin, Clip, Briefcase, Speech bubble, Pencil, Crayons, Notepad, Palette, Notepad closed, Roadworks sign, Envelope, Avatar glasses, Stop sign, Avatar tooth, Stethoscope, Target, Bearing, Warning sign, Saturn, Neptune, Mercury, Earth dark, Earth, Uranus, Mars, Jupiter, Volleyball, Tennis, Pool, Soccer, Basketball, Rhombus, Calculator, Cell phone, Quadcopter, Amanita mushroom, Russula mushroom, Desk fan, Sewing machine, Triangle, Trapezoid, Toaster, Blender, Hand saw, Tulip, Chainsaw, Juicer, Pocket watch, Old bicycle, TV, Smart watch, Bowling, Pluto, Square, Parallelogram, Octagon, Avatar smiling, Avatar star, Avatar mustache, Avatar hat, Circle, Saw disk, Red face, Spiral, Fidget spinner, Handheld console, Tablet, Beech mushroom, Button mushroom, Chanterelle mushroom, Porcini mushroom, Hair dryer, Washing machine, Clothes iron, Electric kettle, Mixer, Fridge, Circular saw, French keys, Screwdriver, Sunflower, Pot, Teapot, Magnifying glass, Mirror, Cuckoo clock, Round clock, Hammer, Wild rose, Sakura, Dandelion, Electric scooter, Cartoon car, Van, Old wheel, Frying pan, Coffee mug, White dish, Microscope, Timer, Telescope, Binocular, Chamomile, Kaleidoscope, Vaze, Train, Square clock