PHP code example of autosync-php / sdk
1. Go to this page and download the library: Download autosync-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/ */
autosync-php / sdk example snippets
use Autosync\Sdk\AutosyncClient;
ail: $_ENV['AUTOSYNC_EMAIL'],
password: $_ENV['AUTOSYNC_PASSWORD'],
);
$passings = $client->getAllPassings(
from: new DateTimeImmutable('2026-08-01T00:00:00Z'),
to: new DateTimeImmutable('2026-09-01T00:00:00Z'),
);
foreach ($passings as $passing) {
echo "{$passing->transactedOn->format(DATE_ATOM)} {$passing->totalPrice} NOK\n";
}
bash
composer