techyscouts/checkfront-sdk
最新稳定版本:v0.1.0
Composer 安装命令:
composer require techyscouts/checkfront-sdk
包简介
Modern PHP SDK for the Checkfront API v4.0
README 文档
README
A modern PHP SDK for the Checkfront API v4.0.
Requires PHP 8.2+ and the curl extension.
Installation
composer require techyscouts/checkfront-sdk
Usage
use TechyScouts\Checkfront\Auth\TokenAuthentication; use TechyScouts\Checkfront\CheckfrontClient; use TechyScouts\Checkfront\Configuration; $config = new Configuration( host: 'https://your-company.checkfront.com', auth: new TokenAuthentication(apiKey: '...', apiSecret: '...'), ); $client = new CheckfrontClient($config); // List bookings $bookings = $client->bookings()->list(); // Fetch a single booking $booking = $client->bookings()->fetch('BK-1234'); // List products $products = $client->products()->list();
OAuth2
use TechyScouts\Checkfront\Auth\OAuth2Authentication; $auth = new OAuth2Authentication(accessToken: '...');
Laravel
The package auto-discovers its service provider. Publish the config:
php artisan vendor:publish --provider="TechyScouts\Checkfront\Laravel\CheckfrontServiceProvider"
Then set CHECKFRONT_HOST, CHECKFRONT_API_KEY, and CHECKFRONT_API_SECRET in your .env.
License
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-24