Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/namankumar80510/dikkidotenv
Just another dotenv library for PHP ripped-off from CodeIgniter 4.
https://github.com/namankumar80510/dikkidotenv
Last synced: 9 days ago
JSON representation
Just another dotenv library for PHP ripped-off from CodeIgniter 4.
- Host: GitHub
- URL: https://github.com/namankumar80510/dikkidotenv
- Owner: namankumar80510
- License: mit
- Created: 2023-09-14T16:36:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-14T16:39:18.000Z (about 1 year ago)
- Last Synced: 2024-10-08T18:28:37.924Z (about 1 month ago)
- Language: PHP
- Size: 2.93 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
This DotEnv component was ripped off from CodeIgniter 4 and created as a standalone component. It is a simple class that
loads a `.env` file in the project root and sets the environment variables from it.## Usage
```php
$dotenv = new Dikki\DotEnv\DotEnv(__DIR__); // directory where .env is present
$dotenv->load(); // load the vars from .env fileecho $_ENV['DEBUG']; // or getenv('DEBUG')
```