php-invoiceocean, a PHP client to interact with the InvoiceOcean.com API
It’s been a while since I created a public PHP library to interact with another API but here we go.
What is InvoicingOcean?
“The easiest way to online invoicing”. Over 70 000 companies are using the InvoiceOcean software. The application’s simplicity and intuitive interface is aimed at quick and efficient invoice issuing. Because of the SaaS environment, your data is securely stored in the Cloud and available to access from anywhere in the world. Whether you are a small or medium business owner or an individual entrepreneur, InvoiceOcean will make your work easier.
A few facts
– it’s RESTful
– works with Json exclusively (although they have XML api’s, I like Json more)
– it’s pretty smart in a way that you only have to define the method names, no parameter or http method checking
– works with composer (obviously)
Clone this repo @ https://github.com/kryap/php-invoiceocean
How to use?
composer require kryap/php-invoiceocean ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) - Installing kryap/php-invoiceocean (dev-master a8ccf4d) Cloning a8ccf4dfd3b8daa611087822f27da2a773c073ce Writing lock file Generating autoload files Generating optimized class loader
Here’s how you could use it:
<!--?php $io = new InvoiceOceanClient('username', 'api_token_goes_here'); $clients = $io--->getClients(); var_dump($clients); ?>
Need more documentation about the InvoiceOcean API?
Visit these links: