kreait / personio
An SDK to work with the Personio API
Installs: 35
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/kreait/personio
Requires
- php: ^7.1
- ext-json: *
- guzzlehttp/guzzle: ^6.0
- guzzlehttp/promises: ^1.3
- myclabs/php-enum: ^1.6
- psr/http-message: ^1.0
- symfony/options-resolver: ^4.1
- tightenco/collect: ^5.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
- phpunit/phpunit: ^7.3
- symfony/var-dumper: ^4.1
This package is auto-updated.
Last update: 2022-02-01 13:14:42 UTC
README
A PHP SDK to work with the Personio API.
This package is no longer maintained. Use https://github.com/jeromegamez/personio-php instead.
Installation
composer require kreait/personio
Usage
use Kreait\Personio; try { $app = Personio::initializeApp([ 'client_id' => getenv('PERSONIO_CLIENT_ID'), 'client_secret' => getenv('PERSONIO_CLIENT_SECRET'), 'debug' => false, // default ]); $employees = $app->getEmployees(); $employee = $app->getEmployee($id); $timeOffs = $app->getTimeOffPeriods(); $timeOff = $app->getTimeOffPeriod($id); } catch (Personio\Error $e) { echo $e->getMessage(); }