2017 © Pedro Peláez
 

symfony-bundle favicon-generator-bundle

Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.

image

venture-oak-labs/favicon-generator-bundle

Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.

  • Thursday, October 8, 2015
  • by joaoalves89
  • Repository
  • 2 Watchers
  • 8 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

RealFaviconGeneratorBundle

Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application., (*1)

Installation

Get the bundle using composer

Add RealFaviconGeneratorBundle by running this command from the terminal at the root of your Symfony project:, (*2)

composer require venture-oak-labs/favicon-generator-bundle

Enable the bundle

To start using the bundle, register the bundle in your application's kernel class:, (*3)

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new VentureOakLabs\FaviconGeneratorBundle\VentureOakLabsFaviconGeneratorBundle(),
        // ...
    );
}

Configure bundle

# app/config/config.yml
venture_oak_labs_favicon_generator:
    api_key: #required

How to use

// The bundle provides a service to generate the favicons package based on a set of options.
$generator = $this->container->get('venture_oak_labs.favicon_generator.generator');

// Options
$options = array(
    'general' => array(
        'src' => # Required ( URL For image or image content encoded in Base64),
        'icons_path' => # Defaults to 'root'
    ),
    'design' => array( 
        'desktop_browser', # By default provides Design for the classic desktop browsers. Configure the other as you like!
        'ios',
        'windows',
        'firefox_app',
        'android_chrome',
        'coast',
        'yandex_browser'
    ),
    'settings' => array(
        'compression',
        'scaling_algorithm',
        'error_on_image_too_small'
    )
);

$response = $generator->generate($options)

// The generated files have an available limit time. You can download and unpack them.
$response->downloadAndUnpack($outputDirectory, $directoryName) # Directory Name defaults to 'favicon_package'

Further reading about the available options: http://realfavicongenerator.net/api/non_interactive_api#.VgQ5Frw2tZ4, (*4)

This bundle is still in beta version!

The Versions

08/10 2015

1.0.x-dev

1.0.9999999.9999999-dev

Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.

  Sources   Download

MIT

The Requires

 

by João Alves

bundle symfony realfavicongenerator favicon generator multiplataform favicon

08/10 2015

dev-master

9999999-dev

Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.

  Sources   Download

MIT

The Requires

 

by João Alves

bundle symfony realfavicongenerator favicon generator multiplataform favicon

08/10 2015

1.0.0

1.0.0.0

Integrate generation of a multiplatform favicon with RealFaviconGenerator into your Symfony application.

  Sources   Download

MIT

The Requires

 

by João Alves

bundle symfony realfavicongenerator favicon generator multiplataform favicon