Viewing File: /home/ubuntu/vedadeals-backend-base/vendor/vidhyar2612/enveditor/README.md

# Laravel 5.X - ENV Editor

[![Build Status](https://travis-ci.org/vidhyar2612/enveditor.svg?branch=master)](https://travis-ci.org/vidhyar2612/enveditor)
[![Latest Stable Version](https://poser.pugx.org/vidhyar2612/enveditor/v/stable)](https://packagist.org/packages/vidhyar2612/enveditor)
[![Total Downloads](https://poser.pugx.org/vidhyar2612/enveditor/downloads)](https://packagist.org/packages/vidhyar2612/enveditor)
[![License](https://poser.pugx.org/vidhyar2612/enveditor/license)](https://packagist.org/packages/vidhyar2612/enveditor)

## Installation

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',
	)
  
## Usage

You can either access the Enveditor store via its facade or inject it by type-hinting towards the abstract class `vidhyar2612\Enveditor\EnveditorStore`.

```php
<?php

	Enveditor::set('ENV_KEY', 'ENV_VALUE');

	Enveditor::get('ENV_KEY');
?>
```
## Package Features
   
   * 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 
   
## Examples

  	Enveditor::all();

	Enveditor::create('EXAMPLE_KEY' , '123456');

	Enveditor::set('EXAMPLE_KEY' , '123');

	Enveditor::get('EXAMPLE_KEY');

	Enveditor::delete('EXAMPLE_KEY');
	
## Contact

Open an issue on GitHub if you have any problems or suggestions.


## License

The contents of this repository is released under the [MIT license](http://opensource.org/licenses/MIT).
   
Back to Directory File Manager