1. Go to this page and download the library: Download amphibee/studizz 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/ */
amphibee / studizz example snippets
use AmphiBee\Studizz\Facades\Contact;
use Illuminate\Support\Facades\Log;
try {
$contactData = [
'firstname' => 'John',
'lastname' => 'Doe',
// ... autres données
];
$contactDto = new ContactDto($contactData);
$newContact = Contact::create($contactDto);
// Log the raw response
Log::channel('api')->info('Studizz API Response', [
'response' => Contact::getRawResponse()
]);
} catch (\Exception $e) {
Log::channel('api')->error('Studizz API Error', [
'message' => $e->getMessage(),
'trace' => $e->getTraceAsString()
]);
}