https://github.com/jijihohococo/php-env
PHP Environment Data Library
https://github.com/jijihohococo/php-env
php php-env php-environment php-library
Last synced: 4 months ago
JSON representation
PHP Environment Data Library
- Host: GitHub
- URL: https://github.com/jijihohococo/php-env
- Owner: jijihohococo
- License: mit
- Created: 2022-01-23T11:34:01.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-03T17:59:29.000Z (about 4 years ago)
- Last Synced: 2024-12-29T11:31:07.314Z (over 1 year ago)
- Topics: php, php-env, php-environment, php-library
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PHP ENV Library
This library is aimed to get data like environment variable from text file
## License
This package is Open Source According to [MIT license](LICENSE.md)
## Table Of Contents
* [Installation](#installation)
* [Using](#using)
## Installation
```php
composer require jijihohococo/php-env
```
## Using
Your text file format should like that
```txt
APP_NAME=test
DB_NAME=mysql
```
You must not use space in your text file.
Firstly, you must declare your text file path
```php
use JiJiHoHoCoCo\PHPENV\ENV;
ENV::set('file_path');
```
And then you can get your data
```php
gete('APP_NAME');
```