bookunited/aqc-client
Composer 安装命令:
composer require bookunited/aqc-client
包简介
A client library for the Amadeus Quick Connect API
README 文档
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.
bookunited/aqc-client 适用场景与选型建议
bookunited/aqc-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 710 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 bookunited/aqc-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bookunited/aqc-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 710
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-08-07