PHPackages                             dev4traders/mt4-sdk-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dev4traders/mt4-sdk-php

ActiveLibrary

dev4traders/mt4-sdk-php
=======================

SDK for using the Metatrader4 API in PHP

v1.0.1(3y ago)63507MITPHPPHP ^8.1

Since Dec 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/dev4traders/mt4-sdk-php)[ Packagist](https://packagist.org/packages/dev4traders/mt4-sdk-php)[ Docs](https://github.com/dev4traders/mt4-sdk-php)[ RSS](/packages/dev4traders-mt4-sdk-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (2)Used By (0)

An SDK for using the Metatrader4 API in PHP
===========================================

[](#an-sdk-for-using-the-metatrader4-api-in-php)

[![Latest Version](https://camo.githubusercontent.com/2cc3bdb5c75934bf77b90a6771d7861b606232ede9c7834240d9ffe131076a40/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657634747261646572732f6d74342d73646b2d7068702e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/dev4traders/mt4-sdk-php)[![PHP Version](https://camo.githubusercontent.com/aa5ca12e3857f9323252469446cd12ef9232d435407bfc2ee000ef48617203fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64657634747261646572732f6d74342d73646b2d7068702e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![Total Downloads](https://camo.githubusercontent.com/416e5a0d28348bc542ba2693efb2394813a74ecfe8d83443c4d8fe34ba63aa7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657634747261646572732f6d74342d73646b2d7068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6d656469756d76696f6c6574726564)](https://packagist.org/packages/dev4traders/mt4-sdk-php)

Here are a few examples:

```
$manager = new \D4T\MT4Sdk\Manager('', '')

// creating a account
$account = $manager->createAccount([
    'email' => '1@1.com',
    'name' => 'My new campaign'
]);
```

```
// listing all logins
$logins = $manager->accounts();

foreach($logins as $login) {
    echo $login;
}
```

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dev4traders/mt4-sdk-php
```

You must also install Guzzle

```
composer require guzzlehttp/guzzle
```

Usage
-----

[](#usage)

To get started, you must first new up an instance of `D4T\MT4Sdk\Manager`

```
use D4T\MT4Sdk\Manager;

$manager = new \D4T\MT4Sdk\Manager('', '')
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fbce5974b58d264518f016a68d42dd0d7f6af4662bc8a98900ab2f62d02ebdd?d=identicon)[mikha-dev](/maintainers/mikha-dev)

---

Top Contributors

[![mikha-dev](https://avatars.githubusercontent.com/u/3321987?v=4)](https://github.com/mikha-dev "mikha-dev (16 commits)")

---

Tags

d4tdev4tradersmetatradermetatrader-4metatrader4mt4mt4-apimt4-rest-apiphpdev4tradersmt4-sdk-php

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dev4traders-mt4-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/dev4traders-mt4-sdk-php/health.svg)](https://phpackages.com/packages/dev4traders-mt4-sdk-php)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
