composer require laxcorp/rdp-bundle
rdp:
full_address: 'rdp.host:port'
$bundles = [
new LaxCorp\RdpBundle\RdpBundle()
]
use LaxCorp\RdpBundle\Helper\RdpHelper;
....
$responce = $this->get(RdpHelper::class)
->getDefault()
->setUserName('user1')
->responceFile('userfile');
use LaxCorp\RdpBundle\Helper\RdpHelper;
....
$logins = ['user1', 'user2'];
$rdpHelper = $this->get(RdpHelper::class);
$rdp = $rdpHelper->getDefault();
foreach ($logins as $login){
$rdp->add($rdpHelper->getDefault()->setUserName($login));
}
$responce = $rdp->responceZip('all_rdp');