PHP code example of docchula / vesta-client

1. Go to this page and download the library: Download docchula/vesta-client 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/ */

    

docchula / vesta-client example snippets


$vestaClient = new Docchula\VestaClient();
// or use Laravel's Facade:
$response = VestaClient::retrieveStudent($identifier, $userEmail, ['title', 'first_name', 'last_name', 'first_name_en', 'last_name_en', 'email', 'nickname']);
if ($response->successful()) {
    $data = $response->json();
}
bash
php artisan vendor:publish --tag="vesta-client-config"