sweetdate/client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固