bookunited / aqc-client
There is no license information available for the latest version (0.0.12) of this package.
A client library for the Amadeus Quick Connect API
0.0.12
2026-03-09 10:50 UTC
Requires
- php: ^8.3
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
- moneyphp/money: ^4.0
- psr-discovery/http-client-implementations: ^1.2
- psr-discovery/http-factory-implementations: ^1.1
- psr-discovery/log-implementations: ^1.0
- psr/cache: ^3.0.0
- psr/clock: ^1.0
- psr/http-client: ^1.0.1
- psr/http-factory: ^1.0.1
- psr/http-message: ^1.0.1
- psr/log: ^3.0.0
- ramsey/uuid: ^4.7
- symfony/property-access: ^7.1
- symfony/serializer: ^7.1
Requires (Dev)
- ext-simplexml: *
- brainmaestro/composer-git-hooks: ^3.0
- dg/bypass-finals: ^1.8
- ergebnis/phpstan-rules: ^2.2
- friendsofphp/php-cs-fixer: ^3.59
- guzzlehttp/guzzle: ^7.4.5
- guzzlehttp/psr7: ^2.4.0
- infection/infection: ^0.29.6
- mockery/mockery: ^1.6
- phpstan/phpstan: ^1.11
- phpstan/phpstan-strict-rules: ^1.6
- phpunit/phpunit: ^11.0
- psr-mock/http-client-implementation: ^1.0
- psr-mock/http-factory-implementation: ^1.0
- roave/security-advisories: dev-latest
- symfony/var-dumper: ^7.1
This package is auto-updated.
Last update: 2026-03-09 10:50:21 UTC
README
bookunited/aqc-client is a PHP client library for the Amadeus Quick Connect API.
This project is currently aligned with Flight Offers Search API v2.14.
Requirements
- PHP
^8.3 - Composer
Installation
composer require bookunited/aqc-client
Quick Start
<?php
use Amadeus\Client\Client;
use Amadeus\Client\Configuration;
use Amadeus\Model\Collections\ExtendedTravelerCollection;
use Amadeus\Model\Collections\OriginDestinationCollection;
use Amadeus\Model\Collections\SourceCollection;
use Amadeus\Model\Enums\Source;
use Amadeus\Model\Enums\TravelerType;
use Amadeus\Model\Values\Date;
use Amadeus\Model\Values\DateTimeRange;
use Amadeus\Model\Values\ExtendedTravelerInfo;
use Amadeus\Model\Values\GetFlightOffersBody;
use Amadeus\Model\Values\IATA;
use Amadeus\Model\Values\OriginDestination;
use Amadeus\Requests\FlightOffersSearchRequest;
use Ramsey\Uuid\Uuid;
$client = new Client(
configuration: new Configuration(
endpoint: 'https://test.travel.api.amadeus.com',
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
),
cache: $yourCache,
);
$request = new FlightOffersSearchRequest(
clientReference: Uuid::uuid4(),
getFlightOffersBody: new GetFlightOffersBody(
originDestinations: new OriginDestinationCollection([
new OriginDestination(
id: 1,
originLocationCode: new IATA('AMS'),
destinationLocationCode: new IATA('JFK'),
departureDateTimeRange: new DateTimeRange(new Date('2026-07-01')),
),
]),
travelers: new ExtendedTravelerCollection([
new ExtendedTravelerInfo(id: 1, travelerType: TravelerType::ADULT),
]),
sources: new SourceCollection([Source::GDS]),
),
);
$response = $client->get($request);
Development
Run the full verification pipeline:
./develop composer run verify
This runs formatting, static analysis, tests, and mutation testing.