mathijsvdb/fastback-php

API wrapper for Fastback

v1.0.4 2021-05-06 14:06 UTC

This package is auto-updated.

Last update: 2025-05-20 18:07:45 UTC


README

A simple library for reading out a Fastback XML export.

Usage

Install using Composer

composer require mathijsvdb/fastback-php

Create an instance of Fastback/Client:

$client = new Fastback\Client();
$client->setOrigin('YOUR_PROVIDED_URL');

It is possible to specify a supported language to receive translations.
Supported languages are defined in Fastback\Language.

$client->setLanguage('YOUR_LANGUAGE');

Methods

Method Description
$client->getVehicles() Returns all vehicles.
$client->getBrands() Returns all brands.
$client->getModels() Returns all models.
$client->getDealers() Returns all dealers.
$client->getFuelTypes() Returns all fuel types.
$client->getColors() Returns all colors.
$client->getUpholsteries() Returns all upholsteries.
$client->getBodyTypes() Returns all body types.
$client->getTransmissions() Returns all transmission types.