mafacturation / php-client
There is no license information available for the latest version (dev-main) of this package.
dev-main
2023-11-23 11:59 UTC
Requires
- ext-openssl: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.9
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.4
This package is not auto-updated.
Last update: 2024-11-18 23:17:16 UTC
README
This is a PHP client for the Mafacturation API. Mafacturation is a Belgian quoting & invoicing software for freelancers and small businesses, with a REST API.
Installation
You can install the package via composer:
composer require mafacturation/php-client
Usage
You can use the client like this, by passing the API key to the constructor. The API key can be found in the Mafacturation settings.
Tenancy is supported by passing the tenant ID to the constructor. The tenant ID can be found in the Mafacturation settings.
use Mafacturation\Mafacturation; $maFacturation = new Mafacturation('your-api-key', 'your-tenant-id'); //or $maFacturation = new Mafacturation(); $maFacturation->setToken('your-api-key'); $maFacturation->setTenantId('your-tenant-id');
Customers
// Get all customers $customers = $maFacturation->customers()->get(); // Get a customer by ID $customer = $maFacturation->customers()->get(1);