trykapi / kapi-php
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/trykapi/kapi-php
Requires
- guzzlehttp/guzzle: ^7.7
This package is auto-updated.
Last update: 2025-10-09 22:07:47 UTC
README
Installation
composer require trykapi/kapi-php
Usage
$kapi = new KapiClient([ 'api_key' => 'YOUR_API_KEY', ]); // list of users $users = $kapi->users->index([ 'filter' => [ 'first_name' => 'Alexander', ], 'sort' => '-first_name', ]); //get user by id $user = $kapi->users->show(1, [ 'include' => 'invitationStatus' ]); use Kapi\KapiSdk\Exception\ValidationException; try { $result = $kapi->users->store([ 'first_name' => 'John', 'last_name' => 'Doe', 'email' => 'john@trykapi.com', ]); } catch (ValidationException $e) { $errors = $e->getData(); }