PHP code example of 7thstreetweb / intacct-sdk-php-ar-aging

1. Go to this page and download the library: Download 7thstreetweb/intacct-sdk-php-ar-aging 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/ */

    

7thstreetweb / intacct-sdk-php-ar-aging example snippets


    /** @var ClientConfig $clientConfig */
    $clientConfig = new ClientConfig();

    $client = new OnlineClient($clientConfig);

    /** @var ArAging $accountsReceivableRequest **/
    $accountsReceivableRequest = new ArAging();
    $accountsReceivableRequest->setAgingPeriods('0-');
    $accountsReceivableRequest->setLocationId('03');
    $accountsReceivableRequest->setShowDetails(true);

    $response = $client->execute($accountsReceivableRequest);