2017 © Pedro Peláez
 

library silex-tools

Tools for Silex 2.0+ framework

image

lokhman/silex-tools

Tools for Silex 2.0+ framework

  • Tuesday, May 16, 2017
  • by lokhman
  • Repository
  • 1 Watchers
  • 1 Stars
  • 512 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

silex-tools

StyleCI, (*1)

Tools for Silex 2.0+ micro-framework., (*2)

Installation

You can install silex-tools with Composer:, (*3)

composer require lokhman/silex-tools

Components

Suggested Components

Application Container

Class that overrides base Silex\Application class and provides automatic registration of ConfigServiceProvider, error handling and Tools Trait., (*4)

use Lokhman\Silex\Application as BaseApplication;

class Application extends BaseApplication {

    public function __construct(array $values = []) {
        $values['config.dir'] = __DIR__.'/../app/config';

        parent::__construct($values);

        // ...
    }

}

Route Class

Class that overrides base Silex\Route class and adds support for SecurityTrait. You can enable it with:, (*5)

$app['route_class'] = 'Lokhman\Silex\Route';

Twig Service Provider

Extended service provider for traditional TwigServiceProvider that enables support for namespaces in special twig.paths option., (*6)

use Lokhman\Silex\Provider\TwigServiceProvider;

$app->register(new TwigServiceProvider(), [
    'twig.paths' => [
        'PublicBundle' => '/path/to/src/PublicBundle/Resources/views',
    ],
]);

$app->render('@PublicBundle/default/index.html.twig');

Tools Trait

Trait to be included in overridden Silex Application class. Provides various useful methods to be used in the container. This trait is automatically included into Application Container., (*7)

use Silex\Application as BaseApplication;
use Lokhman\Silex\Application\ToolsTrait;

class Application extends BaseApplication {

    use ToolsTrait;

    public function __construct(array $values = []) {
        parent::__construct($values);
    }

}

License

Library is available under the MIT license. The included LICENSE file describes this in detail., (*8)

The Versions

16/05 2017

dev-master

9999999-dev

Tools for Silex 2.0+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

16/05 2017

2.1.4

2.1.4.0

Tools for Silex 2.0+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

16/03 2017

2.1.3

2.1.3.0

Tools for Silex 2.0+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

09/03 2017

2.1.2

2.1.2.0

Tools for Silex 2.0+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

14/02 2017

2.1.1

2.1.1.0

Tools for Silex 2.0+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

24/01 2017

2.1.0

2.1.0.0

Tools for Silex 2.0+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

23/01 2017

2.0.4

2.0.4.0

Tools for Silex 2+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

05/12 2016

2.0.3

2.0.3.0

Tools for Silex 2+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

01/12 2016

2.0.2

2.0.2.0

Tools for Silex 2+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

30/11 2016

2.0.1

2.0.1.0

Tools for Silex 2+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools

25/11 2016

2.0.0

2.0.0.0

Tools for Silex 2+ framework

  Sources   Download

MIT

The Requires

 

by Alexander Lokhman

silex tools