PHP code example of bcismariu / ongage-php

1. Go to this page and download the library: Download bcismariu/ongage-php 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/ */

    

bcismariu / ongage-php example snippets


use Bcismariu\Ongage\Ongage;

$ongage = new Ongage('USERNAME', 'PASSWORD', 'ACCOUNT_CODE');
$ongage->useList('YOUR_LIST_ID')->addContact([
    'email'  => '[email protected]',
    'name'   => 'First Contact'
]);
json
{
    "cismariu/ongage-php": "0.*"
    }
}