slothws/syrve-api

该项目是一个用于方便使用Syrve API的库。

v0.2.31 2024-04-15 21:15 UTC

This package is auto-updated.

Last update: 2024-09-15 22:06:59 UTC


README

PHP库,方便与Syrve API交互。

要求

PHP 7.3.0及以后版本。

安装

通过Composer

composer require slothws/syrve-api

基本示例

初始化

require __DIR__ . '/vendor/autoload.php';

use Sloth\SyrveApi\Syrve;

$syrve = new Syrve([
    'uri' => 'https://test.com/resto/api/',
    'login' => 'test',
    'password' => 'test'
]);

获取员工列表。

$response = $syrve->employees->list();

文档

阅读文档

许可证

MIT