devop-core / dotenv
DotEnv librabry
1.0.2
2019-05-15 11:18 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^6
This package is auto-updated.
Last update: 2024-10-17 23:16:24 UTC
README
Description
This library is just proof of concept. > We do NOT recommended the use of production environment.
Provide dependency injection
Install
Package is available on Packagist, you can install it using Composer.
composer require devop-core/dotenv
Usage
.env
APP_DEBUG=true
APP_NAME="DevOp Studio"
APP_VERSION=null
<?php include_once '../vendor/autoload.php'; (new DevOp\Core\DotEnv())->load('.env')->toEnv(); var_dump([env('APP_DEBUG'), getenv('APP_DEBUG'), env('APP_NAME')]);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.