2017 © Pedro Peláez
 

library environ-service-provider

Environ service provider for Silex micro-framework

image

neemzy/environ-service-provider

Environ service provider for Silex micro-framework

  • Thursday, October 16, 2014
  • by neemzy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Environ service provider

Environ service provider for Silex micro-framework, (*1)

Usage

use Neemzy\Silex\Provider\EnvironServiceProvider;
use Neemzy\Environ\Environment;

$app = new Silex\Application();

$app->register(
    new EnvironServiceProvider(
        [
            'env' => new Environment(
                function () {
                    // condition closure
                },
                function () {
                    // callback closure
                }
            )
        ]
    ),
);

$app->run();

The Versions

16/10 2014

dev-master

9999999-dev

Environ service provider for Silex micro-framework

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar neemzy