26/11
2016
Package Environment is for getting current environment
Package for getting current environment, (*1)
1.1 Add the following to your project's composer.json:, (*2)
1.1.1 Repository containing this package (note: you need to have access to this repository as well as to resources it points to), (*3)
1.1.2 Dependency under "require" key, (*4)
"subscribo/environment": "^0.1.0"
1.2. If you are using Laravel (5.0), you might want to add, (*5)
'\\Subscribo\\Environment\\Integration\\Laravel\\EnvironmentServiceProvider',
under 'providers' key in config/app.php file., (*6)
or, (*7)
if (class_exists('\\Subscribo\\Environment\\Integration\\Laravel\\EnvironmentServiceProvider')) { $app->register('\\Subscribo\\Environment\\Integration\\Laravel\\EnvironmentServiceProvider'); }
in bootstrap/app.php for conditional registration, (*8)
If used with package adding this dependency and registering this service provider for you, this step (1.2) is not necessary., (*9)