This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. The author suggests using the gamez/personio package instead.

An SDK to work with the Personio API

1.0.1 2018-09-25 13:55 UTC

This package is auto-updated.

Last update: 2019-01-24 09:35:53 UTC


A PHP SDK to work with the Personio API.

This package is no longer maintained. Use instead.

Current version Supported PHP version Build Status GitHub license


composer require kreait/personio


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