alpifra/lucca-php

与 Lucca RH API V3 服务交互的基本 PHP 客户端。

dev-master 2022-12-12 10:19 UTC

This package is auto-updated.

Last update: 2024-09-18 12:27:48 UTC


README

一个与 Lucca RH API V3 服务交互的基本独立 PHP 客户端。有关 API 的更多信息,请参阅文档

安装

安装 Lucca API PHP 客户端推荐的方式是通过此 GitHub 仓库

    {
        "requires": {
            "alpifra/lucca-php": "dev-master",
            ...
        }
        "repositories": [
            {
                "type": "vcs",
                "url": "https://github.com/Alpifra/lucca-php.git"
            }
        ],
    }

使用

实例化客户端并请求叶子节点

<?php

$ownerId = 23;
$date = ['between', '2021-01-01', '2021-01-31'];

$client = new Alpifra\LuccaPHP\TimmiAbsences('***API_KEY***');
$client->setFields('id', 'name', 'url');
$client->list($ownerId, $date);

贡献

此包仅实现了我需要的 Lucca API 服务(Timmi Absences),但欢迎您通过发送 PR 向此仓库贡献自己的实现。编码愉快!