thetminnhtun / dotenv
Enviroment variable for php developement
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thetminnhtun/dotenv
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-10-25 20:36:41 UTC
README
Enviroment variable for PHP development
Installation with Composer
composer require thetminnhtun/dotenv
Usage
- Create
.envfile and write following code
APP_NAME=ProjectName
APP_ENV=local
APP_URL=http://localhost
- Create
index.phpfile and write following code
<?php include 'vendor/autoload.php'; dotenv(); echo env('APP_NAME');
- install
dovenvpackage by following command
composer require thetminnhtun/dotenv
- done!