techyscouts/checkfront-sdk

Modern PHP SDK for the Checkfront API v4.0

Maintainers

Package info

github.com/techyscouts/checkfront-sdk

pkg:composer/techyscouts/checkfront-sdk

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-02-24 09:14 UTC

This package is auto-updated.

Last update: 2026-04-24 09:54:34 UTC


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

MIT