Download the PHP package lunalabs-srl/zuora-api without Composer
On this page you can find all versions of the php package lunalabs-srl/zuora-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lunalabs-srl/zuora-api
More information about lunalabs-srl/zuora-api
Files in lunalabs-srl/zuora-api
Package zuora-api
Short Description A simple PHP package to integrate the Zuora REST API.
License GPL-2.0-only
Informations about the package zuora-api
Zuora-API
A simple PHP package to integrate the Zuora REST API in your project.
Installation
You can directly install the package with:
Test the package
Create a simple PHP file with these lines:
Available methods on Account entity
Available methods on PaymentMethod entity
This call will return an object with the property Success = true and the unique ID of the registered payment.
Available methods on Product entity
Available methods on Order entity
Available methods on other entities
The other entites provide similar methods to retrieve, save, update and delete a record.
Simply open the desired entity class and see what it covers.
If you need a particular call on a non-existing method on a entity, you can use the common getResource() method as described here:
Callout
It is possible to handle the Zuora callout by specifying custom username and password for each callout. To instantiate the callout handler, write these lines:
If you want to log the callout response, you can inject you custom logger system as second parameter. Pay attention that your logger must have a "write()" method inside, as shown in this simple example below.
TODO
Factory entities
- [x] accounts
- [ ] catalog
- [ ] contacts
- [ ] invoices
- [x] orders
- [ ] paymentgateways
- [x] paymentmethod
- [x] payments
- [x] product
- [ ] rate-plan
- [ ] refunds
- [x] subscriptions
- [ ] transactions
Testing
- [x] Unit testing
Pagination
- [ ] Handle the pagination