Skip to content

LaxCorp/RdpBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Windows Remote Desktop file.rdp|files.rdp.zip

Install

composer require laxcorp/rdp-bundle

Config

rdp:
    full_address: 'rdp.host:port'

Add in app/AppKernel.php

$bundles = [
    new LaxCorp\RdpBundle\RdpBundle()
]

Usage in controller for single file

use LaxCorp\RdpBundle\Helper\RdpHelper;

....

$responce = $this->get(RdpHelper::class)
                ->getDefault()
                ->setUserName('user1')
                ->responceFile('userfile');

Usage in controller for collection to zip

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');

About

Generate Windows Remote Desktop .rdp file

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages