PHP code example of dfurnes / environmentalist
1. Go to this page and download the library: Download dfurnes/environmentalist 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/ */
dfurnes / environmentalist example snippets
namespace App\Console\Commands;
use DFurnes\Environmentalist\ConfiguresApplication;
use Illuminate\Console\Command;
class SetupCommand extends Command
{
use ConfiguresApplication;
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'setup';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Configure your application.';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
// Setup code and environmentalist configuration methods used here!
}
}
shell
$ php artisan make:command SetupCommand