laxcorp / rdp-bundle
Generate Windows Remote Desktop file.rdp files.rdp.zip
Installs: 577
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 12
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.2
This package is not auto-updated.
Last update: 2025-03-31 01:37:01 UTC
README
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');