https://github.com/pmvc-plugin/dotenv
https://github.com/pmvc-plugin/dotenv
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pmvc-plugin/dotenv
- Owner: pmvc-plugin
- Created: 2015-07-03T10:55:06.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T17:05:12.000Z (over 3 years ago)
- Last Synced: 2025-03-01T23:34:33.635Z (over 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/dotenv)
[](https://packagist.org/packages/pmvc-plugin/dotenv)
[](https://circleci.com/gh/pmvc-plugin/dotenv/tree/main)
[](https://packagist.org/packages/pmvc-plugin/dotenv)
[](https://packagist.org/packages/pmvc-plugin/dotenv)
# PMVC Dot Env plugin
## Comment
- Need use ;
- http://php.net/manual/en/function.parse-ini-file.php#refsect1-function.parse-ini-file-examples
```
; This is a sample configuration file
; Comments start with ';', as in php.ini
```
## Reserved special characters
- Characters ?{}|&~![()^" must not be used anywhere in the key and have a special meaning in the value.
- http://php.net/manual/en/function.parse-ini-string.php
```
?{}|&~![()^"
```
## Install with Composer
CLICK TO SEE
### 1. Download composer
* mkdir test_folder
* curl -sS https://getcomposer.org/installer | php
### 2. Install Use composer.json or use command-line directly
#### 2.1 Install Use composer.json
- vim composer.json
```
{
"require": {
"pmvc-plugin/dotenv": "dev-main"
}
}
```
- php composer.phar install
#### 2.2 Or use composer command-line
- php composer.phar require pmvc-plugin/dotenv
or
- composer require pmvc-plugin/dotenv