andrewdavid/duffel-api-php
Composer 安装命令:
composer require andrewdavid/duffel-api-php
包简介
Duffel API library for PHP (with missing features)
README 文档
README
A PHP library for the Duffel API.
Contents
Requirements
- PHP >= 7.4
- A Duffel API access token (this quick start guide will help you to create one)
Installation
To get started, simply require this library using
Composer. You will also need to install packages
which provide
psr/http-client-implementation and
psr/http-factory-implementation.
An installation could look like the following command.
$ composer require "duffel/api:dev-main" "guzzlehttp/guzzle:^7.4" "http-interop/http-factory-guzzle:^1.2
Usage
A simple example of using this library (after successfully installing it) follows.
use Duffel\Client; $client = new Duffel\Client(); $client->setAccessToken(getenv('DUFFEL_ACCESS_TOKEN')); $client->airports->list();
See the examples/ directory for additional working examples.
License
Duffel's PHP API Client library is licensed under the MIT license.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-24