Here are a few examples:
$manager = new \D4T\MT4Sdk\Manager('<api-key>', '<mt4-api-endpoint>')
// creating a account
$account = $manager->createAccount([
'email' => '[email protected]',
'name' => 'My new campaign'
]);// listing all logins
$logins = $manager->accounts();
foreach($logins as $login) {
echo $login;
}You can install the package via composer:
composer require dev4traders/mt4-sdk-phpYou must also install Guzzle
composer require guzzlehttp/guzzleTo get started, you must first new up an instance of D4T\MT4Sdk\Manager
use D4T\MT4Sdk\Manager;
$manager = new \D4T\MT4Sdk\Manager('<api-key>', '<mt4-api-endpoint>')composer testPlease see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.