PHP code example of expandonline / klipfolio-api-php

1. Go to this page and download the library: Download expandonline/klipfolio-api-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

expandonline / klipfolio-api-php example snippets



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