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
Requires
- php: ^8.1
- ext-sodium: *
- guzzlehttp/guzzle: ^7.9
- psr/http-client: ^1.0
- psr/http-message: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^10.5
This package is not auto-updated.
Last update: 2026-01-06 08:27:13 UTC
README
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.