expandonline/klipfolio-api-php

Integrate Klipfolio with your PHP project with this easy library!

Installs: 97

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 9

Forks: 0

Open Issues: 0

pkg:composer/expandonline/klipfolio-api-php

0.1.4 2016-04-01 10:09 UTC

This package is not auto-updated.

Last update: 2025-11-09 00:58:18 UTC


README

Integrate Klipfolio with your PHP project with this easy library!

Installation

Install the latest version using Composer by running composer require expandonline/klipfolio-api

Usage

<?php
use ExpandOnline\KlipfolioApi\Klipfolio;
use ExpandOnline\KlipfolioApi\Client;
use ExpandOnline\KlipfolioApi\Connector\User\UserConnector;

// Get a user from klipfolio with id 123abc

$client = new Client('api_url', 'api_key', new GuzzleClient());
$klipfolio = new Klipfolio($client);

$user = $klipfolio->get((new UserConnector())->setId('123abc'));

echo $user->company;
// Output: Expand Online

Tests

Run the tests from the project root with php vendor/bin/phpunit