1. Go to this page and download the library: Download airlst/sdk-php 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/ */
airlst / sdk-php example snippets
bash
composer
php
use AirLST\SdkPhp\CoreApi;
$core = new Core('api-key-here');
php
$response = $core->event()->list();
$response->json(); // Get response data as array
php
$response = $core->event()->get('event-uuid-here');
$response->json(); // Get response data as array
php
$response = $core->guest('event-uuid-here')->validateCode('guest-code');
$response->json(); // Get response data as array
php
$response = $core->guest('event-uuid-here')->get('guest-code');
$response->json(); // Get response data as array
php
$response = $core->guest('event-uuid-here')->create([
'status' => 'confirmed',
'contact' => [
'first_name' => 'John',
'last_name' => 'Doe'
]
]);
$response->json(); // Get response data as array
php
$response = $core->guest('event-uuid-here')->update('guest-code', [
'status' => 'confirmed',
'contact' => [
'last_name' => 'Wick'
]
]);
$response->json(); // Get response data as array
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.