sweetdate/client

DO NOT USE โ€” under development

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 13

pkg:composer/sweetdate/client

v0.1.0 2025-09-01 08:16 UTC

README

CI

SweetDate PHP Client SDK

๐Ÿšง This package is under active development.
โ— It is not stable, documented, or supported.
๐Ÿงช Use at your own risk โ€“ or wait for the v1.0 release.

The official PHP SDK for the SweetDate Calendar Engine.
This package provides a simple client for interacting with the SweetDate REST API.

Requirements

  • PHP 8.1+ (tested on 8.1, 8.2, 8.3)
  • Composer for dependency management
  • cURL extension enabled (required by Guzzle)

Installation

Add the SDK to your project using Composer:

composer require sweetdate/client

Usage

Example: list tenants

<?php

require 'vendor/autoload.php';

use SweetDate\Client;

$client = new Client([
    'base_url' => 'https://api.sweetdate.io',
    'api_key'  => getenv('SWEETDATE_API_KEY'),
]);

$tenants = $client->tenants()->list([
    'limit'  => 10,
    'offset' => 0,
]);

print_r($tenants);

Development

1) Clone and install

git clone https://github.com/SweetDate-Calendar/sd_php.git
cd sd_php

2) Install deps & init Pest

composer validate
composer install
vendor/bin/pest --init

3) Run tests

composer test

4) Run static analysis

composer stan

5) Run linter

composer lint

License

This project is licensed under the MIT License.
See the LICENSE file for details.