{"id":34007352,"url":"https://github.com/aleedhillon/meta-five","last_synced_at":"2026-04-05T01:31:53.260Z","repository":{"id":56943998,"uuid":"461461367","full_name":"aleedhillon/meta-five","owner":"aleedhillon","description":"Laravel MetaTrader 5 Web API Client.","archived":false,"fork":false,"pushed_at":"2025-12-25T23:34:59.000Z","size":145,"stargazers_count":33,"open_issues_count":0,"forks_count":19,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T09:48:08.170Z","etag":null,"topics":["crm","forex","forex-trading","laravel","metaquotes","metatrader-5","mt5","mt5-api","mt5webapi","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aleedhillon.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"aleedhillon"}},"created_at":"2022-02-20T11:06:17.000Z","updated_at":"2025-12-25T23:35:03.000Z","dependencies_parsed_at":"2024-05-13T19:44:05.440Z","dependency_job_id":"4bb4bfae-8bf8-49b6-acd0-db5b4d872c2d","html_url":"https://github.com/aleedhillon/meta-five","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/aleedhillon/meta-five","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleedhillon%2Fmeta-five","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleedhillon%2Fmeta-five/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleedhillon%2Fmeta-five/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleedhillon%2Fmeta-five/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleedhillon","download_url":"https://codeload.github.com/aleedhillon/meta-five/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleedhillon%2Fmeta-five/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31421869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T00:25:07.052Z","status":"ssl_error","status_checked_at":"2026-04-05T00:25:05.923Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crm","forex","forex-trading","laravel","metaquotes","metatrader-5","mt5","mt5-api","mt5webapi","php"],"created_at":"2025-12-13T11:03:31.515Z","updated_at":"2026-04-05T01:31:53.243Z","avatar_url":"https://github.com/aleedhillon.png","language":"PHP","funding_links":["https://github.com/sponsors/aleedhillon"],"categories":[],"sub_categories":[],"readme":"## Meta Five\n\nThis is Laravel 8.x + package wrapper library for Metatrader 5 Web API\n\n- [Official MT5 Web Api Documentation](https://support.metaquotes.net/en/docs/mt5/api/webapi).\n\n## Ready-Made CRM Solution for MetaTrader 5\n\nLooking for a comprehensive, ready-made CRM solution for the MetaTrader 5 platform? Look no further! We offer a robust MT5 CRM system designed to efficiently manage client data, interactions, and services.\n\n### MT5 CRM Features:\n\n- **Client Onboarding:** Streamline the process of registering and managing new clients.\n- **Communication Tracking:** Keep detailed records of client communications to improve service and satisfaction.\n- **Reporting Tools:** Generate insightful reports to enhance productivity and client satisfaction.\n- **Inter-Account Transfers:** Facilitate seamless transfers between accounts.\n- **Manual and Automatic Payment Gateways:** Manage deposits and withdrawals from MetaTrader trade accounts effortlessly.\n- **Top-Ups and Bonuses:** Easily manage top-ups and bonuses for your clients.\n- **Public Website Management:** Customize and manage your public website through the admin panel.\n- **Web Trader:** Offer a web-based trading platform for your clients.\n- **Introducing Broker Features:** Implement different commission levels for introducing brokers.\n- **User and Trade Accounts Management:** Comprehensive tools to manage all user and trade accounts.\n\nOur MT5 CRM is designed to boost your brokerage's efficiency and client relations. If you're interested in a turnkey CRM solution, a demo can be provided upon contact.\n\n### Contact Information:\n\n- **Email:** [aleedhx@gmail.com]\n\nFor more details or to purchase the ready-made CRM, please reach out to us!\n\n## Documentation\n\n### Packagist\n\n[https://packagist.org/packages/aleedhillon/meta-five](https://packagist.org/packages/aleedhillon/meta-five).\n\n### Installing\n\nTo install the package, in terminal:\n\n```\ncomposer require aleedhillon/meta-five\n```\n\n### Configure\n\nIf you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php\n\n```\nAleeDhillon\\MetaFive\\MetaFiveProvider::class,\n```\n\n#### Copy the package config to your local config with the publish command:\n\n```bash\nphp artisan vendor:publish --tag=meta-five-config\n```\n\nand then you can configure connection information to MT5 with this `.env` value\n\n```dotenv\nMT5_SERVER_IP=\nMT5_SERVER_PORT=\nMT5_SERVER_WEB_LOGIN=\nMT5_SERVER_WEB_PASSWORD=\n```\n\n## Usage\n\n### Create Deposit\n\nYou can withdraw money by giving negetive number to the same `trade` method.\n\n```php\nuse AleeDhillon\\MetaFive\\Entities\\Trade;\nuse AleeDhillon\\MetaFive\\Facades\\Client;\n\n$trade = new Trade();\n$trade-\u003esetLogin(6000189);\n$trade-\u003esetAmount(100);\n$trade-\u003esetComment(\"Deposit\");\n$trade-\u003esetType(Trade::DEAL_BALANCE);\n$result = Client::trade($trade);\n```\n\nThe result variable will return Trade class with ticket information, you can grab ticket number by calling `$result-\u003egetTicket()`\n\n### Create User\n\n```php\nuse AleeDhillon\\MetaFive\\Entities\\User;\nuse AleeDhillon\\MetaFive\\Facades\\Client;\n\n$user = new User();\n$user-\u003esetName(\"John Doe\");\n$user-\u003esetEmail(\"johndoe@example.com\");\n$user-\u003esetGroup(\"demo\\demoforex\");\n$user-\u003esetLeverage(\"50\");\n$user-\u003esetPhone(\"0123456789\");\n$user-\u003esetAddress(\"Lahore\");\n$user-\u003esetCity(\"Lahore\");\n$user-\u003esetState(\"Punjab\");\n$user-\u003esetCountry(\"Pakistan\");\n$user-\u003esetZipCode(1470);\n$user-\u003esetMainPassword(\"secret\");\n$user-\u003esetInvestorPassword(\"secret\");\n$user-\u003esetPhonePassword(\"secret\");\n\n$result = Client::createUser($user);\n```\n\n### Get Trading Account Information\n\n```php\nuse AleeDhillon\\MetaFive\\Facades\\Client;\n\n$user = Client::getTradingAccounts($login);\n\n$balance = $user-\u003eBalance;\n$equity = $user-\u003eEquity;\n$freeMargin = $user-\u003eMarginFree;\n```\n\n### Get Trading History By Login Number\n\n```php\nuse AleeDhillon\\MetaFive\\Facades\\Client;\n\n// Get Closed Order Total and pagination\n$total = Client::getOrderHistoryTotal($exampleLogin, $timestampfrom, $timestampto);\n$trades = Client::getOrderHistoryPagination($exampleLogin, $timestampfrom, $timestampto, 0, $total);\nforeach ($trades as $trade) {\n    // see class MTOrder\n    echo \"LOGIN : \".$trade-\u003eLogin.PHP_EOL;\n    echo \"TICKET : \".$trade-\u003eOrder.PHP_EOL;\n}\n```\n\n### Open Order\n\n```php\nuse AleeDhillon\\MetaFive\\Facades\\Client;\nClient::dealerSend([\n    'Login' =\u003e 8113,\n    'Symbol' =\u003e 'XAUUSD',\n    'Volume' =\u003e 100,\n    'Type' =\u003e 0\n});\n```\n\nThe result variable will return User class with login information, you can grab login number by calling `$result-\u003egetLogin()`\n\n### Todo\n\n- [x] Deposit or Withdrawal\n- [x] Create Account\n- [x] Open Order\n- [x] Get Trading Account Information\n- [ ] Change Password\n- [ ] Create Group\n- [ ] Delete Group\n- [ ] Get Accounts\n- [ ] Remove Account\n- [ ] Get Trades\n- [ ] Get Group\n\nThis is work in progress, I will may be improve this package or rewrite the entire one with Laravel 9 and PHP 8 Support.\nIn this revisioin I haven't touched much to the core in next I intend to rewrite the core.\n\n## Credits\n\nThanx to [Tarikh Agustia](https://github.com/tarikhagustia) who wrote the following two packges from which I have rewritten this current package with improvements like the Laravel singleton pattern for speed and reducing API calls to MT5.\n\n- [https://github.com/tarikhagustia/php-mt5](https://github.com/tarikhagustia/php-mt5)\n- [https://github.com/tarikhagustia/laravel-mt5](https://github.com/tarikhagustia/laravel-mt5)\n\n## Contributing\n\nThank you for considering contributing to the MetaFive! you can fork this repository and make pull request.\n\n## Security Vulnerabilities\n\nIf you discover a security vulnerability within MetaFive, please send an e-mail to Ali A. Dhillon via [aleedhx@gmail.com](aleedhx@gmail.com). All security vulnerabilities will be promptly addressed.\n\n## License\n\nThe MetaFive packge is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleedhillon%2Fmeta-five","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleedhillon%2Fmeta-five","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleedhillon%2Fmeta-five/lists"}