PHP code example of evans-wanguba / sage-evolution-freedom-api

1. Go to this page and download the library: Download evans-wanguba/sage-evolution-freedom-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

evans-wanguba / sage-evolution-freedom-api example snippets


use EvansWanguba\Sage\SageEvolutionFreedom;

= [
    "client" => [
        "Active" => true,
        "Description" => "John Doe",
        "ChargeTax" => true,
        "Code" => "JON001",
    ]
];
$response = $sage->postTransaction('CustomerInsert', (object)$data);