PHP code example of rlwebdiensten / laravel-viper
1. Go to this page and download the library: Download rlwebdiensten/laravel-viper 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/ */
rlwebdiensten / laravel-viper example snippets
function __construct(\RlWebdiensten\LaravelViper\LaravelViper $viperService)
{
$this->viperService = $viperService;
// e.g.
$persons = $this->viperService->getAllPersons();
}
function someMethod()
{
$persons = LaravelViper::getAllPersons();
}
php artisan viper:login
php artisan viper:refresh