Package Data | |
---|---|
Maintainer Username: | vidhyar2612 |
Maintainer Contact: | vidhyar2612@gmail.com (Vidhya) |
Package Create Date: | 2016-11-20 |
Package Last Update: | 2022-03-15 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 15:03:38 |
Package Statistics | |
---|---|
Total Downloads: | 53,533 |
Monthly Downloads: | 122 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 0 |
The Enveditor Service Provider can be installed via Composer
"require": {
"vidhyar2612/enveditor": "^1.0"
}
Use composer to install this package.
composer require vidhyar2612/enveditor
##Registering the Package
Register the service provider within the providers array found in app/config/app.php:
'providers' => array(
// ...
vidhyar2612\Enveditor\EnveditorServiceProvider::class
)
Add an alias within the aliases array found in app/config/app.php:
'aliases' => array(
// ...
'Enveditor' => 'vidhyar2612\Enveditor\Facade',
)
You can either access the Enveditor store via its facade or inject it by type-hinting towards the abstract class vidhyar2612\Enveditor\EnveditorStore
.
<?php
Enveditor::set('ENV_KEY', 'ENV_VALUE');
Enveditor::get('ENV_KEY');
?>
List of all keys and values
Create a new key with value
Edit value of the key
Get the value of the key
Delete key
Enveditor::all();
Enveditor::create('EXAMPLE_KEY' , '123456');
Enveditor::set('EXAMPLE_KEY' , '123');
Enveditor::get('EXAMPLE_KEY');
Enveditor::delete('EXAMPLE_KEY');
Open an issue on GitHub if you have any problems or suggestions.
The contents of this repository is released under the MIT license.