PHP implementation of Tilkee API https://tilkee.readme.io/
HbsResearch\Tilkee PHP is a HbsResearch\Tilkee client written in PHP.
This client supports the API v1
Important: This library doesn't support the full API for now.
You are more than welcome to contribute to the swagger specifications
The recommended way to install HbsResearch\Tilkee PHP is through Composer:
composer require hbs-research/tilkee-php
<?php
require __DIR__ . '/vendor/autoload.php';
use Http\Message\Authentication\Bearer;
use HbsResearch\Tilkee\HbsResearch\Tilkee;
use HbsResearch\Tilkee\TilkeeClient;
// Place here your API key or Oauth Token
$token = 'de314e88c49be0e2b7ad746ab6643d217670d9736f6ce7bccc151';
// Here is your unique tilk ref provided by HbsResearch\Tilkee
$tilkRef = 'TilkTestClient';
$authentication = new Bearer($token);
$tilkeeClient = new TilkeeClient($authentication, $tilkRef);
$tilkee = new HbsResearch\Tilkee($tilkeeClient);
$projectList = $tilkee->getProjectManager()->listProject()->getContents();
foreach ($projectList as $project) {
echo sprintf("%s: %s\n", $project->getId(), $project->getName());
}
# get jane OpenAPI
composer install --dev
rm -rf generated/*
./vendor/bin/jane-openapi generate -c .jane-openapi
If you don't want to mess up your system, you can use the provided Docker Dockerfile.
docker build --rm -t tilkee-php .
Then, use the shortcut tilkee
./bin/tilkee your_command_here
Please see CONTRIBUTING for details.
This library use Jane Open Api to generate the API stubs from a custom OpenApi (Swagger) specification file: tilkee-swagger.yml
This README is inspired by willdurand/Negotiation by @willdurand.
The MIT License (MIT). Please see License File for more information.