jijihohococo / php-env
PHP Envrionment Data Library
1.3
2022-02-03 17:58 UTC
Requires
- php: >=7.0 || >=8.0
This package is auto-updated.
Last update: 2025-03-29 01:03:09 UTC
README
This library is aimed to get data like environment variable from text file
License
This package is Open Source According to MIT license
Table Of Contents
Installation
composer require jijihohococo/php-env
Using
Your text file format should like that
APP_NAME=test DB_NAME=mysql
You must not use space in your text file.
Firstly, you must declare your text file path
use JiJiHoHoCoCo\PHPENV\ENV; ENV::set('file_path');
And then you can get your data
gete('APP_NAME');