/php-sdk

PHP SDK for FeatValue

Primary LanguagePHPMIT LicenseMIT

FeatValue logo

FeatValue PHP SDK

This is the PHP SDK of FeatValue, a collaboration tool by a coding project GmbH.

Installation

Install using composer:

composer require featvalue/php-sdk

Getting started

Create a new API instance using your API key and token:

$api = new \FeatValue\Api(<YOUR_API_KEY>, <YOUR_TOKEN>);

If you want to test locally, add a host as a third parameter:

$api = new \FeatValue\Api(<YOUR_API_KEY>, <YOUR_TOKEN>, "http://localhost/api");

Usage

Get a task:

$task = $api->get("/tasks/1");

Get all tasks:

$tasks = $api->tasks();

Filter tasks by status:

$tasks = $api->tasks(["status" => "OPEN"]);

You can access the complete API documentation here.