Laravel Client Service for Vesta, the MDCU Directory Provider
You can install the package via composer:
composer require docchula/vesta-client
You can publish the config file with:
php artisan vendor:publish --tag="vesta-client-config"
You should set the following ENV variables:
VESTA_SECRET
- The secret key provided by VestaVESTA_ISSUER
- The issuer URL provided by VestaVESTA_URL
- The URL of the Vesta API (optional)
$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();
}
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.