https://github.com/namankumar80510/dikkidotenv
A simple dotenv library for PHP
https://github.com/namankumar80510/dikkidotenv
Last synced: 6 months ago
JSON representation
A simple dotenv library for PHP
- Host: GitHub
- URL: https://github.com/namankumar80510/dikkidotenv
- Owner: namankumar80510
- License: mit
- Created: 2023-09-14T16:36:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T06:36:53.000Z (8 months ago)
- Last Synced: 2024-12-22T17:48:20.148Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dikki DotEnv - Just Another DotEnv Component for PHP
A simple dotenv component for PHP.
## Usage
```php
$dotenv = new Dikki\DotEnv\DotEnv(__DIR__, '.env'); // directory where .env is present; second argument is optional
$dotenv->load(); // load the vars from .env fileecho $_ENV['DEBUG']; // or getenv('DEBUG')
```