sharis-gmbh / debitoorapiclient
Provides an implementation of the debitoor api in a php client
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
pkg:composer/sharis-gmbh/debitoorapiclient
Requires
- php: >=5.3.0
 - guzzle/guzzle: 3.8.*@dev
 
Requires (Dev)
- phpunit/phpunit: ~4.0
 
This package is not auto-updated.
Last update: 2025-10-23 18:17:37 UTC
README
Debitoor php api clent library, Work in progress
Usage :
You can instantiate an api for each types of services :
- Customers
 - DraftInvoices
 - Invoices
 - Expenses
 - Products
 - Quotes
 - etc.
 
Each service provides an interface to the methods provided in debitoor api, you can see what is in "Services/servicename.json" to check what parameters can be sent.
Example :
$customerService = DebitoorApiClient::getService('Customers', array('access_token' => $auth_token)); // list customers $customerService->getCustomers(); // get customer by id $customerService->getCustomer(array('customer_id' => 'your customer id')); // create customer $customerService->createCustomer( array( 'name' => 'your customer name', 'address' => 'customer address', 'email' => 'customer@debitoor', 'phone' => '000-000-00-00', ... ) ); // update customer $customerService->updateCustomer( array( 'customer_id' => 'your customer id', 'name' => 'your customer name', 'address' => 'customer address', 'email' => 'customer@debitoor', 'phone' => '000-000-00-00', ... ) );