subscribo/environment

Package Environment is for getting current environment
80
Install
composer require subscribo/environment
Latest Version:v0.1.0
PHP:^5.4 || ^7.0
License:MIT
Last Updated:Nov 26, 2016
Links: GitHub  ·  Packagist
Maintainer: subscribo

Environment Package

Package for getting current environment

1. Installation

1.1 Add the following to your project's composer.json:

1.1.1 Repository containing this package (note: you need to have access to this repository as well as to resources it points to)

1.1.2 Dependency under "require" key

    "subscribo/environment": "^0.1.0"

1.2. If you are using Laravel (5.0), you might want to add

    '\\Subscribo\\Environment\\Integration\\Laravel\\EnvironmentServiceProvider',

under 'providers' key in config/app.php file.

or

    if (class_exists('\\Subscribo\\Environment\\Integration\\Laravel\\EnvironmentServiceProvider')) {
        $app->register('\\Subscribo\\Environment\\Integration\\Laravel\\EnvironmentServiceProvider');
    }

in bootstrap/app.php for conditional registration

If used with package adding this dependency and registering this service provider for you, this step (1.2) is not necessary.

Related Packages

xetaio/xetaravel-local

A simple package that regroup all tools to work in local environment.

810 2
mykehowells/dotenv

Load .env file into project environment, using same functions as Laravel

9,662 2
unnutz/laravel-environment-config

Bring back environment configuration cascading to Laravel

211 1
sven/env-providers

Load Laravel service providers based on your application's environment.

9,722 76
wdmtech/enviricons

Environment-specific favicons for local, development and staging environments in...

1,282 12