Style-CI | Travis CI | Coverage | Downloads | Release |
---|---|---|---|---|
InfaktClient is a PHP library for the third version of Infakt REST API that makes it easy to perform CRUD (create, read, update and delete) operations on invoices, clients and products.
Install Composer and run the following command to get the latest version:
composer require miisieq/infakt-client
$infakt = new \Infakt\Infakt(
'7e2356a0a400d6ec3d2ced911991f3e8',
new \GuzzleHttp\Client()
);
$clients = $infakt->getRepository(\Infakt\Model\Client::class)->getAll();
$client = $infakt->getRepository(\Infakt\Model\Client::class)->get(2887744);
See more: Infakt API Documentation
$bankAccounts = $infakt->getRepository(\Infakt\Model\BankAccount::class)->getAll();
$bankAccount = $infakt->getRepository(\Infakt\Model\BankAccount::class)->get(4786512);
See more: Infakt API Documentation
$infakt->getRepository(\Infakt\Model\VatRate::class)->getAll()
See more: Infakt API Documentation
Running tests (phpunit/phpunit)
$ composer tests
Running code style fixer (friendsofphp/php-cs-fixer)
$ composer phpcs
This package is released under the MIT license. See the included LICENSE file for more information.