PHP code example of dejury / laravel-envcrypt
1. Go to this page and download the library: Download dejury/laravel-envcrypt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dejury / laravel-envcrypt example snippets
bash
php artisan vendor:publish --provider="Dejury\Envcrypt\EnvcryptServiceProvider"
php
php artisan envcrypt:add KEY_NAME
php
php artisan envcrypt:remove KEY_NAME
php
php artisan envcrypt:view ENVIRONMENT
php
$encryptedEnv = env('KEY_NAME'); // just like you are used to in Laravel