2017 © Pedro Peláez
 

symfony-bundle identicon-bundle

A Symfony 2 bundle for bitverse/identicon.

image

bitverse/identicon-bundle

A Symfony 2 bundle for bitverse/identicon.

  • Sunday, November 1, 2015
  • by ice9js
  • Repository
  • 1 Watchers
  • 0 Stars
  • 218 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

BitverseIdenticonBundle

This package contains a bundle which integrates bitverseio/identicon with a Symfony application., (*1)

Installation

Download the bundle using composer:, (*2)

$ composer require bitverse/identicon-bundle

Enable the bundle in app/AppKernel.php:, (*3)

<?php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Bitverse\IdenticonBundle\BitverseIdenticonBundle(),
        );

        // ...
    }

    // ...
}

Configuration

BitverseIdenticonBundle allows you to specify the preprocessor and generator class, as well as the background color for the identicons. Here's the default configuration in YAML:, (*4)

bitverse_identicon:
    preprocessor:
        class: Bitverse\Identicon\Preprocessor\MD5Preprocessor
    generator:
        class: Bitverse\Identicon\Generator\PixelsGenerator
        background_color: #EEEEEE

Usage

The bundle provides the identicon service which is an instance of Bitverse\Identicon\Identicon. You can use it to create icons directly:, (*5)

$svg = $this->get('identicon')->getIcon('helloworld');

Or you can inject it as a dependency should you need it:, (*6)

services:
    my_service:
        arguments:
            - @identicon

The Versions

01/11 2015

dev-master

9999999-dev

A Symfony 2 bundle for bitverse/identicon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kuba Birecki

01/11 2015

1.0.2

1.0.2.0

A Symfony 2 bundle for bitverse/identicon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kuba Birecki

01/11 2015

1.0.1

1.0.1.0

A Symfony 2 bundle for bitverse/identicon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kuba Birecki

16/10 2015

1.0.0

1.0.0.0

A Symfony 2 bundle for bitverse/identicon.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kuba Birecki