PHPackages                             aleedhillon/meta-trader-client - 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. [API Development](/categories/api)
4. /
5. aleedhillon/meta-trader-client

ActiveLibrary[API Development](/categories/api)

aleedhillon/meta-trader-client
==============================

A Laravel package for seamless integration with the MetaTrader 5 web API, enabling account management, trading operations, and more.

2.2.0(10mo ago)31822MITPHPPHP ^8.2

Since Aug 1Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/aleedhillon/meta-trader-client)[ Packagist](https://packagist.org/packages/aleedhillon/meta-trader-client)[ Docs](https://github.com/aleedhillon/meta-trader-client)[ RSS](/packages/aleedhillon-meta-trader-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

MetaTrader Client for Laravel
=============================

[](#metatrader-client-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/77d555cf903377b0a376b2ed5dce61d0abcd50f246fb0875ce9014d484edf231/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c65656468696c6c6f6e2f6d6574612d7472616465722d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aleedhillon/meta-trader-client)[![Total Downloads](https://camo.githubusercontent.com/1d77e8a608a0054a91d3267fb0839860b393cb900e417b9eaab5606b219d69ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65656468696c6c6f6e2f6d6574612d7472616465722d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aleedhillon/meta-trader-client)[![License: MIT](https://camo.githubusercontent.com/c2bffd81d308ced1cc3b0d66fb0ed453ab478a5e17c988b780f9de986a390ee2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT)

A powerful Laravel package for seamless integration with the MetaTrader 5 Web API. This package enables brokers and financial applications to connect with MT5 servers and perform various operations including account management, trading operations, and market data retrieval.

**✨ Modernized for PHP 8.4** - Features modern PHP syntax, proper exception handling, type safety, and clean API design.

📋 Features
----------

[](#-features)

- **🔗 Server Connection Management**: Establish secure connections to MT5 servers with automatic connection handling
- **👥 User Management**: Create, update, and manage trading accounts with full lifecycle support
- **📈 Trading Operations**: Execute trades, manage orders and positions with real-time updates
- **📊 Market Data**: Access real-time quotes, ticks, and symbol information
- **👥 Group Management**: Create and manage user groups with flexible permissions
- **⚙️ Symbol Configuration**: Configure trading instruments with advanced settings
- **📧 Communication Tools**: Send emails and news to platform users
- **🚨 Exception Handling**: Comprehensive exception system with specific error types
- **🔐 Type Safety**: Modern PHP 8.4 with strict typing and null safety
- **🎯 Clean API**: No more reference parameters - all methods return values directly

🚀 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require aleedhillon/meta-trader-client
```

The package will automatically register its service provider and facade.

⚙️ Configuration
----------------

[](#️-configuration)

Publish the configuration file:

```
# Publish configuration file only
php artisan vendor:publish --tag=meta-trader-client-config

# Or publish all package resources using provider flag
php artisan vendor:publish --provider="Aleedhillon\MetaTraderClient\MetaTraderClientServiceProvider"
```

This will create a `config/meta-trader-client.php` file with the following content:

```
