Download the PHP package e-artspace/pimple-env-provider without Composer
On this page you can find all versions of the php package e-artspace/pimple-env-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download e-artspace/pimple-env-provider
More information about e-artspace/pimple-env-provider
Files in e-artspace/pimple-env-provider
Download e-artspace/pimple-env-provider
More information about e-artspace/pimple-env-provider
Files in e-artspace/pimple-env-provider
Vendor e-artspace
Package pimple-env-provider
Short Description A super simple, uSilex compatible, lightweight service provider to override Pimple container parameters with the value of environment variables.
License MIT
Package pimple-env-provider
Short Description A super simple, uSilex compatible, lightweight service provider to override Pimple container parameters with the value of environment variables.
License MIT
Please rate this library. Is it a good library?
Informations about the package pimple-env-provider
pimple-env-provider
pimple-env-provider is a super simple, Silex compatible, lightweight service provider to allow overriding of Pimple container parameters with the value of environment variables.
Install
Usage
The container's parameters allowed to be overridden must be declared in env.prefix array. Foreach parameter a cast service name must be supplied (custom or predefined).
Call 'env.overload' before using the container.
Predefined services:
- env.cast.strval: cast to a string
- env.cast.intval: cast to a integer
- env.cast.json_decode: to an array from a json string
- env.cast.boolean: cast to boolean 'true','TRUE' oe '1' => true otherwhise false
- env.name.builder: function to generate environment variable name, by default: environment var name = strtoupper((strreplace('.', '', container var name)));
- env.prefix: a prefix for generated environment variable name (default is empty)
Create a new cast service:
Customize env.name.builder service
Developing and Testing with docker
$ docker run --rm -ti -v $PWD/.:/app composer install
$ docker run --rm -ti -v $PWD/.:/app composer vendor/bin/phpunit
License
(c) Enrico Fagnoni MIT License (see file)
All versions of pimple-env-provider with dependencies
PHP Build Version
Package Version
Requires
pimple/pimple Version
^3.2
The package e-artspace/pimple-env-provider contains the following files
Loading the files please wait ....