SellSy

Connect your platform to your Sellsy Account.


Thanks to Sellsy API, you are able to connect your platform to your account, push and pull contacts, quote, invoice or any documents available via the Sellsy Api.

The library is Framework-free and can be used with any PHP website. It needs only a PSR-7 transport, like Guzzle. A default implementation is provided with this library.

By implementing TransportInterface, you can use an other transport.

...

Features


Framework Free

Not dependent to a framework or a tool.

PSR-7

Interoperable with any objects using the PSR-7 recommendation.

Easily integrable

Implement only interfaces on your classes.

GitHub


Fork the project on GitHub

It is open source! It's hosted, developed, and maintained on GitHub by folks like you.


View GitHub Project

Example



<?php

use GuzzleHttp\Client;
use 
Teknoo\Sellsy\Transport\Guzzle;
use 
Teknoo\Sellsy\Sellsy;

include 
'vendor/autoload.php';

//Create the HTTP client
$guzzleClient = new Client();

//Create the transport bridge
$transportBridge = new Guzzle($guzzleClient);

//Create the front object
$sellsy = new Sellsy(
    
'https://apifeed.sellsy.com/0/',
    
'27ea6ef9d319d615d5ad9fc81c831cf80be769d0',
    
'fe9cf54290cf38a0ec7cd9508413926f5f8f495e',
    
'9c601a9504f497bae67358488c3d8a68597d2020',
    
'd68c188386a5d6798375fb799e02e1aa4aaae5b8'
);

$sellsy->setTransport($transportBridge);

//Example of request, follow the API documentation of Sellsy API.
print $sellsy->Infos()->getInfos()->getResponse()['consumerdatas']['id'].PHP_EOL;
print 
$sellsy->AccountPrefs()->getCorpInfos()->getResponse()['email'].PHP_EOL;