phpdotenv-for-codeigniter icon indicating copy to clipboard operation
phpdotenv-for-codeigniter copied to clipboard

Loads environment variables from `.env` to `getenv()` automagically.

Results 4 phpdotenv-for-codeigniter issues
Sort by recently updated
recently updated
newest added
trafficstars

If running this from the "Manual Install" and keeping everything default as in github. Navigating to http://siteurl.com/.env.production will offer the environment file to be downloaded by the user.

New `env` function to return a default `environment` if it is not set.

Always look for .env file first before looking for environment specific env

The `ENVIRONMENT` constant you're referencing ( https://github.com/agungjk/phpdotenv-for-codeigniter/blob/master/system/dotenv/Dotenv.php#L29) may not be defined. I think Dotenv should fall back to a standard `.env` if that's the case.