This is a package for accessing to meta trader APIs.
composer require mhmalekian/mttrader
You can create a metatrader4 object:
$mt4obj = Mt4trader('your_wallet_user','your_wallet_password','your_wallet_host','your_wallet_host_port');
You can also create metatrader5 object:
$mt5obj = Mt5trader('your_wallet_user','your_wallet_password','your_wallet_host','your_wallet_host_port');