Skip to content
No description or website provided.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
tests
.editorconfig
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist
renovate.json

README.md

Laravel Environment

Build Status PHP from Packagist Latest Version License

Based on the article How to keep a secret.

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require artisanry/environment

Configuration

Laravel Env supports optional configuration.

To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish --provider="Artisanry\Environment\EnvironmentServiceProvider"

This will create a config/env.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

Usage

To get started, you'll need to generate a new encryption key for the env.php config file.

$ php artisan env:key
// 5W183ikLhZqoJ1Ye

Copy this key and place it within the env.php config file.

Register sec_env method

Add the following code at the very top of bootstrap/app.php, above any other code:

require_once(__DIR__.'/../vendor/artisanry/environment/src/functions.php');

Testing

$ phpunit

Security

If you discover a security vulnerability within this package, please send an e-mail to hello@basecode.sh. All security vulnerabilities will be promptly addressed.

Credits

This project exists thanks to all the people who contribute.

License

Mozilla Public License Version 2.0 (MPL-2.0).

You can’t perform that action at this time.