1. Go to this page and download the library: Download steveworley/lagoon-php-sdk 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/ */
steveworley / lagoon-php-sdk example snippets
composer
php
use Lagoon\LagoonClient;
$client = new LagoonClient($endpoint, $token);
$customers = $client->customer()->all()->execute();
php
use Lagoon\LagoonClient;
$client = new LagoonClient($endpoint, $token);
$customers = $client->project()->all()->fields(['name'])->execute();