PHP code example of laxcorp / rdp-bundle
1. Go to this page and download the library: Download laxcorp/rdp-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
laxcorp / rdp-bundle example snippets
$bundles = [
new LaxCorp\RdpBundle\RdpBundle()
]
$responce = $this->get(RdpHelper::class)
->getDefault()
->setUserName('user1')
->responceFile('userfile');
$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');