sweetdate/client
最新稳定版本:v0.1.0
Composer 安装命令:
composer require sweetdate/client
包简介
DO NOT USE — under development
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-01