承接 sweetdate/client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sweetdate/client

最新稳定版本:v0.1.0

Composer 安装命令:

composer require sweetdate/client

包简介

DO NOT USE — under development

README 文档

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.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-01