Download the PHP package ramlev/economic without Composer
On this page you can find all versions of the php package ramlev/economic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package economic
E-conomicPHPWrapper
PHP Wrapper for E-conomic REST API
This E-conomic PHP Wrapper supports following options:
- Customers - Create, Show, Update, Delete & Filter by filterable options.
- Currency - Get all & Get one by currency code fx. "DKK".
- Units - Create, Show, Update, Delete.
- Products - Create, Show, Update, Delete.
- Payment types - Get all & Get one by ID.
- Layouts - Get all & Get one by ID.
- Invoice(draft) - Create with empty invoicelines, create with invoicelines where products are assigned & You can book invoice.
1. Getting Started
In order to work with this E-conomic wrapper you'll need to provide a AppSecretToken & AgreementGrantToken key - look at the following code to understand how you should begin.
Be sure to set the correct namespaces.
2. Customers
There are two different customer objects, they are listed below.
- Customer
-
CustomerCollection
2.1. Customer
Read - You can retrieve customers one by one with this object, aswell this object is the one you use when you wan't to create, update & delete a specific customer.
Create - If you wan't to create a customer there are five properties that are required before you can do that, they are name, currency, paymentTerms, customerGroup, vatZone.
Update - To update a customer the process is almost identical, however you are not required to provide any properties, you can simply choose to update any property.
Delete - You can delete any customer, with a simple method.
2.2. CustomerCollection
Read - This will give you an entire list of all customers, another option there is, is that you can filter on customer names.
Filter - Filter on filterable properties, incase something match it will return object with information about the given customer, make sure to read through the documentation in order to see which properties you can filter on, I do also recommend read through the Filter documentation to see which operators they support.
Filterable properties: https://restdocs.e-conomic.com/#customers
Filter operators: https://restdocs.e-conomic.com/#filtering