opensoft/opensoft-epl-bundle

OpensoftEplBundle is wrapper for opensoft/epl library

Installs: 3 735

Dependents: 0

Stars: 1

Watchers: 1

Language: PHP

1.0.1 2013-05-15 04:51 UTC

README

Build Status

Installation

Add this bundle to your project

Using the composer

php composer.phar require opensoft/opensoft-epl-bundle

Using the vendors script

Add the following lines in your deps file:

[OpensoftEplBundle]
    git=git://github.com/opensoft/OpensoftEplBundle.git
    target=bundles/Opensoft/EplBundle
[epl]
    git=http://github.com/opensoft/epl.git

Run the vendors script:

$ php bin/vendors install

Using Git submodule

$ git submodule add git://github.com/opensoft/OpensoftEplBundle.git vendor/bundles/Opensoft/EplBundle

Add the EPL namespace to your autoloader

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    'Epl'       => __DIR__.'/../vendor/epl/src',
    'Opensoft'  => __DIR__.'/../vendor/bundles',
    // your other namespaces
));

Add this bundle to your application's kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new Opensoft\EplBundle\OpensoftEplBundle(),
        // ...
    );
}
Documentation and configuration

It is simple configuration bundle for epl library. Two configuration parameters are available.

opensoft_epl:
    composite: Epl\CommandComposite # implements Epl\CommandCompositeInterface
    helper: Epl\CommandHelper       # implements Epl\CommandHelperInterface
License

See Resources/meta/LICENSE.

Original Credits
  • Petrov Dmitry as main author.