Created
March 2, 2016 16:24
-
-
Save th3d0g/eb958a5d1ed5695536ff to your computer and use it in GitHub Desktop.
DOT Env Loader PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load either live or dev .env | |
(new Dotenv\Dotenv(__DIR__.'/../', ( strpos( gethostname(), 'liveserver.com' ) !== false ) ? '.env.live' : '.env' ) )->load(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment