Skip to content

Alpifra/lucca-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Lucca API

A basic and stand-alone PHP client interracting with the Lucca RH API V3 services. For more information about the API please see the documentation.

Installation

The recommended way to install Lucca API PHP client is through this Github repository:

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

Usage

Instanciate client and request leaves

<?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);

Contribution

This package only implement the Lucca API service that I need (Timmi Absences), but you're welcome to contribute to this repository with you own implementation by sending me a PR. Happy coding !

About

A basic PHP client interracting with the Lucca RH API V3 services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages