This package contains the PHP SDK to work with MT4.
Here are a few examples:
use D4T\Mt4Sdk\Facades\MT4Manager;
// creating a campaign
$account = MT4Manager::createAccount([
'email' => '[email protected]',
'name' => 'Test Name'
]);
You can install the package via composer:
composer require dev4traders/laravel-mt4-sdk
You must publish the config file with:
php artisan vendor:publish --tag="mt4-sdk"
This is the contents of the published config file:
return [
/*
* You'll find both the API token and endpoint on Mailcoach'
* API tokens screen in the Mailcoach settings.
*/
'api_token' => env('MT4_API_TOKEN'),
'endpoint' => env('MT4_API_ENDPOINT'),
];
In your .env
file you should add the entries from the config file mentioned above.
You can use the D4T\MT4Sdk\Facades\MT4Manager
facade to perform most operations.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.