Search by

Unofficial PHP SDK for Autosync self-service

v1.0.0 2026-09-19 16:40 UTC

This package is auto-updated.

Last update: 2026-09-19 16:50:09 UTC


README

Unofficial PHP 8.3+ SDK for signing in to Autosync self-service with email and password and fetching passings for every customer profile and vehicle.

Installation

Install the SDK and any PSR-18 implementation, for example Guzzle:

composer require autosync-php/sdk guzzlehttp/guzzle

Usage

<?php

use Autosync\Sdk\AutosyncClient;

require __DIR__ . '/vendor/autoload.php';

$client = AutosyncClient::login(
    email: $_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";
}

getAllPassings() follows every result page for every accessible customer profile. It omits the OBE filter used by the website, so the result includes every vehicle. Use getCustomers() and getPassingsPage() when manual paging is preferable.

Credentials, session cookies, and tokens are kept in memory only. Never commit credentials or log exception context containing private API payloads.

Autosync does not document these web endpoints. Upstream login or response changes may require an SDK update. Use this package only with an account you are authorized to access.