techyscouts / checkfront-sdk
Modern PHP SDK for the Checkfront API v4.0
v0.1.0
2026-02-24 09:14 UTC
Requires
- php: ^8.2
- ext-curl: *
- ext-json: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^2.0
- psr/simple-cache: ^3.0
Requires (Dev)
- phpstan/phpstan: ^1.0||^2.0
- phpunit/phpunit: ^10.0||^11.0
Suggests
- guzzlehttp/guzzle: For using Guzzle as the HTTP client
- illuminate/support: For Laravel service provider integration
- nyholm/psr7: PSR-7 implementation for use with Symfony HTTP client
- symfony/cache: PSR-16 cache implementation for OAuth2 token persistence
- symfony/http-client: For using Symfony HTTP client
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.