2017 © Pedro Peláez
 

symfony-bundle imagine-bundle

Integrates Imagine into Symfony2

image

fkr/imagine-bundle

Integrates Imagine into Symfony2

  • Tuesday, August 27, 2013
  • by fkrauthan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

FkrImagineBundle

Integrates Imagine into Symfony2., (*1)

Installation

Bring in the vendor libraries

This can be done in three different ways:, (*2)

Method #1) Use composer, (*3)

"require": {
    "fkr/imagine-bundle": "*"
}

Method #2) Use git submodules, (*4)

git submodule add git://github.com/avalanche123/Imagine.git vendor/imagine
git submodule add git://github.com/fkrauthan/FkrImagineBundle.git vendor/bundles/Fkr/ImagineBundle

Method #3) Use deps file, (*5)

[Imagine]
    git=git://github.com/avalanche123/Imagine.git
    target=imagine
    version=v0.2.8

[FkrImagineBundle]
    git=git://github.com/fkrauthan/FkrImagineBundle.git
    target=bundles/Fkr/ImagineBundle

Register the Imagine and Fkr namespaces

// app/autoload.php
$loader->registerNamespaces(array(
    'Imagine' => __DIR__.'/../vendor/imagine/lib',
    'Fkr' => __DIR__.'/../vendor/bundles',
    // your other namespaces
));

Add SimplePieBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Fkr\ImagineBundle\FkrImagineBundle(),
        // ...
    );
}

Configuration

# app/config.yml
fkr_imagine:
    driver: gd
  • driver: sets the driver which Imagine should use

Allowed drivers: * gd (default) Use GD * imagick Use IMagick * gmagick Use GMagick, (*6)

Usage

To get a driver specific Imagine class instance just use the following code, (*7)

$this->get('fkr_imagine');

Thats all. For the complete api visit the Imagine api doc., (*8)

Licence

Resources/meta/LICENSE, (*9)

The Versions

27/08 2013

dev-master

9999999-dev https://github.com/fkrauthan/FkrImagineBundle

Integrates Imagine into Symfony2

  Sources   Download

MIT

The Requires

 

by Florian Krauthan

image symfony bundle imagine image transform