PHP code example of madeitbelgium / laravel-vestacp

1. Go to this page and download the library: Download madeitbelgium/laravel-vestacp 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/ */

    

madeitbelgium / laravel-vestacp example snippets


composer 

"madeitbelgium/laravel-vestacp": "0.*"

MadeITBelgium\VestaCP\VestaCPServiceProvider::class,

'VestaCP' => MadeITBelgium\VestaCP\VestaCPFacade::class,


use MadeITBelgium\VestaCP\VestaCP;

$vestacp = new VestaCP($server, $key);



$users = VestaCP::users()->list(); // \MadeITBelgium\VestaCP\Response\User


public function store(Request $request) {
    $this->validate($request, ['username' => 'user|useravailable']);
}