Download the PHP package cleaniquecoders/php-env-key-manager without Composer
On this page you can find all versions of the php package cleaniquecoders/php-env-key-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cleaniquecoders/php-env-key-manager
More information about cleaniquecoders/php-env-key-manager
Files in cleaniquecoders/php-env-key-manager
Package php-env-key-manager
Short Description A framework-agnostic PHP package for easy .env file key management. Seamlessly update, add, or modify environment variables across projects with minimal configuration.
License MIT
Homepage https://github.com/cleaniquecoders/php-env-key-manager
Informations about the package php-env-key-manager
PHP Env Key Manager
A framework-agnostic PHP package for easy .env file key management. Seamlessly update, add, or modify environment variables across projects with minimal configuration.
Installation
You can install the package via composer:
Usage
Basic Usage
Following are the basic usage examples for the package:
Framework-Specific Examples
Laravel
To use EnvKeyManager
in a Laravel application, register it as a singleton in the AppServiceProvider
to allow easy access across your application.
Laravel Usage
1. **Register as a Singleton** In `App\Providers\AppServiceProvider`: 2. **Usage in a Command** Create a Laravel Artisan command to set, disable, or enable environment keys:Symfony
To use EnvKeyManager
in Symfony, initialize it with the .env
path, and use it in Symfony commands or services.
Symfony Usage
1. **Initialize `EnvKeyManager`** with Symfony’s `.env` path. 2. **Use in a Symfony Command** Create a Symfony console command to manage environment keys:CodeIgniter
To use EnvKeyManager
in CodeIgniter, initialize it with the .env
path and use it within controllers or custom classes.
CodeIgniter Usage
1. **Initialize `EnvKeyManager`** with the CodeIgniter `.env` path. 2. **Use in a CodeIgniter Controller** Create a CodeIgniter controller method to manage environment keys:These framework-specific examples demonstrate how to integrate EnvKeyManager
seamlessly in Laravel, Symfony, and CodeIgniter, making it easy to manage environment keys within each framework.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Nasrul Hazim Bin Mohamad
- All Contributors
License
The MIT License (MIT). Please see License File for more information.