PHP SDK for the KIWI.KI API used for remote unlocking and administration of doors.
Note
This SDK is generated from the KIWI.KI API specification and maintained as an integration library.
- Full generated API client (models, API classes, and tests)
- Manual client regeneration via GitHub Actions
- Automatic tagging based on API spec version
This package is not published on Packagist, so plain composer install in a different project will not fetch it automatically.
Add this to your consuming project's composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/United-Workspace/kiwiki-php-client.git"
}
],
"require": {
"sleevesup/kiwiki-api": "dev-main"
}
}Then run:
composer update sleevesup/kiwiki-api --with-all-dependenciescomposer config repositories.kiwiki vcs https://github.com/United-Workspace/kiwiki-php-client.git
composer require sleevesup/kiwiki-api:dev-mainIf the repository is private, ensure Composer can authenticate to GitHub (SSH key or access token).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use KiwiKi\Configuration;
use KiwiKi\Api\AddressApi;
use GuzzleHttp\Client;
$config = Configuration::getDefaultConfiguration()
->setApiKey('Session-Key', 'YOUR_API_KEY');
$api = new AddressApi(new Client(), $config);
$result = $api->v1AddressesSearchGet('street', '1', 1010);- Generated endpoint/model docs:
docs/ - Generated client source:
lib/ - Generated API snapshot README (created by generator):
API_README.md
Generate KIWI.KI Clientworkflow (.github/workflows/generate-client.yml)- Triggered manually
- Regenerates client code from the configured Swagger spec
- Opens a pull request with the changes
Tag Releaseworkflow (.github/workflows/tag-release.yml)- Triggered on pushes to
main - Reads API version from spec and creates a matching Git tag if missing
- Triggered on pushes to
Generator configuration and local generation script live in .generator/.
See .generator/README.md for details.
- Install local development dependencies:
composer install - Run tests:
./vendor/bin/phpunit