2017 © Pedro Peláez
 

library favicon

Favicon generator

image

jdz/favicon

Favicon generator

  • Wednesday, May 30, 2018
  • by jdz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Favicon Generator

This package allows you to build the most common favicons from a single PNG source file., (*1)

It can include : - MS favicons & tiles, manifest.json - old Apple favicons - Android favicons, browserconfig.xml - 64px icon - 48px icon, (*2)

Basic usage

[PATH_TO_SOURCE_FILE] is the absolute path to your favicon source PNG file., (*3)

[DESTINATION_PATH] is the absolute path where you want the favicons to be stored (eg. the public directory of your website), (*4)

$config = array_merge([
  'filePath'      => '[PATH_TO_SOURCE_FILE]/favicon.png',
  'destPath'      => '[DESTINATION_PATH]/',
  'appName'       => 'Application name',
  'appShortName'  => 'AppName',
  'appLanguage'   => 'fr-FR',
  'appStartUrl'   => './?manifest=true',
  'appThemeColor' => '#F9F9F9',
  'appBgColor'    => '#F9F9F9',
  'appDisplay'    => 'standalone',
  'use64Icon'     => true,
  'use48Icon'     => true,
  'noOldApple'    => false,
  'noAndroid'     => false,
  'noMs'          => false,
], $testConfig);

$generator = new \JDZ\Favicon\Generator($config);

try {
  $generator->execute();

  // the info buffer stores the written files in an array
  $list_of_written_files = $generator->getInfoBuffer();
  echo "

";
  print_r($list_of_written_files);
  echo "
"; } catch(\JDZ\Favicon\Exception\GeneratorException $e){ echo $e->getMessage(); }

The Versions

30/05 2018

dev-master

9999999-dev https://github.com/joffreydemetz/favicon/

Favicon generator

  Sources   Download

MIT

The Requires

 

favicon

30/05 2018

2.0.1

2.0.1.0 https://github.com/joffreydemetz/favicon/

Favicon generator

  Sources   Download

MIT

The Requires

 

favicon

13/05 2018

2.0.0

2.0.0.0 https://github.com/joffreydemetz/favicon/

Favicon generator

  Sources   Download

MIT

The Requires

 

favicon

02/03 2018

1.2.1

1.2.1.0 http://joffreydemetz.com/git/favicon/

Favicon generator

  Sources   Download

MIT

The Requires

 

favicon

22/01 2018

1.2.0

1.2.0.0 http://joffreydemetz.com/git/favicon/

Favicon generator

  Sources   Download

MIT

The Requires

 

favicon

03/12 2017

1.1.0

1.1.0.0 http://joffreydemetz.com/git/favicon/

Favicon generator

  Sources   Download

MIT

The Requires

 

favicon