evans-wanguba / sage-evolution-freedom-api
This is a PHP package for handling Sage Evolution Freedom web service integration
v1.0.0
2024-08-08 13:35 UTC
Requires
- php: >=8.0
- guzzlehttp/guzzle: ~6.0|~7.0
Requires (Dev)
- mockery/mockery: ~1.3.1
- phpunit/phpunit: ~9.3
README
This is a PHP package for Sage Evolution Freedom web service integration. The API is a set of generic Accounting functions that is designed to cater for a wide-ranging of functions that allows a merchant to have access to the Sage Evolution system.
Installation
Pull in the package through Composer.
composer require evans-wanguba/sage-evolution-freedom-api
Create the following variables in your .env file.
SAGE_IP_ADDRESS=ipaddresswheresageishosted SAGE_PORT=5000 SAGE_AGENT_USERNAME=agentusername SAGE_AGENT_PASSWORD=agentpassword
Supported Functions
- Customers
- Suppliers
- Inventory Items
- Inventory Item Price Lists
- Inventory Item Selling Prices
- Aging Terms
- Areas
- Customer Groups
- Person
- Supplier Groups
- Sales Representatives
- Settlement Terms
- Customer Transactions
- Supplier Transactions
- Inventory Transactions
- Create Sales Order Quotation
- Create Sales Order
- Create Sales Order Invoice
- Open Sales Order & Process Invoice
Usage
To make a create customer request is simple. Just initiate the SageEvolutionFreedom
and post the transaction:
use EvansWanguba\Sage\SageEvolutionFreedom; require "vendor/autoload.php"; $sage = new SageEvolutionFreedom(); $data = [ "client" => [ "Active" => true, "Description" => "John Doe", "ChargeTax" => true, "Code" => "JON001", ] ]; $response = $sage->postTransaction('CustomerInsert', (object)$data);
The $response
is either JSON or XML depending on the function.
Support
See sample.php
for more examples. The API documentation is also available in the docs
folder.
Or email me at ewanguba@gmail.com