devop-core/dotenv

1.0.2 2019-05-15 11:18 UTC

This package is auto-updated.

Last update: 2024-09-17 23:12:21 UTC


README

Description

This library is just proof of concept. > We do NOT recommended the use of production environment.

Provide dependency injection

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.