Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aqlx86/envchecker
Simple Laravel 5 package that checks if your .env file is outdated
https://github.com/aqlx86/envchecker
Last synced: about 1 month ago
JSON representation
Simple Laravel 5 package that checks if your .env file is outdated
- Host: GitHub
- URL: https://github.com/aqlx86/envchecker
- Owner: aqlx86
- Created: 2016-02-14T17:15:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-12-30T13:27:39.000Z (about 3 years ago)
- Last Synced: 2024-11-10T09:08:01.565Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/aqlx86/envchecker.svg?branch=master)](https://travis-ci.org/aqlx86/envchecker)
Introduction
------------Simple Laravel 5 package that checks if your `.env` file is outdated.
Installation
------------Add Envchecker to your composer.json file:
```composer.phar require "aqlx86/envchecker"```
Add the service provider to your Laravel application config:
```PHP
EnvChecker\EnvCheckerServiceProvider::class
```Configuration
-------------```
php artisan vendor:publish --provider="EnvChecker\EnvCheckerServiceProvider"
```Update `config/envchecker.php`
```
return [
// template env file path
'example' => base_path('.env.example'),
// local env file
'local' => base_path('.env'),
// optional env vars
'optional' => []
];```
Usage
-----```
php artisan env:check
```Sample Output
```
template file contains new values.
+------------------+---------------+
| New Keys | Default Value |
+------------------+---------------+
| MAIL_PORT | 2525 |
| MAIL_ENCRYPTION2 | null |
+------------------+---------------+
```Test
----PHPSpec
```
./bin/phpspec run
```Todo PHPUnit