Download the PHP package dedipanel/phpseclib-wrapper-bundle without Composer

On this page you can find all versions of the php package dedipanel/phpseclib-wrapper-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpseclib-wrapper-bundle

PHPSeclib Wrapper Bundle

Build Status Scrutinizer Quality Score

This bundle contains useful methods (connection management, easy key storing, verification on installed packets ...) on top of PHPSeclib library (pure php ssh/sftp client).

You can easily connect to ssh/sftp servers and do some basic operations (upload, download, mkdir, touch, chmod, ...). You can also access directly the phpseclib API. The wrapper provide logging functionnality.

Install

How to use

Server

You can use Server objects provided by the Bundle or you can implement your own Serer class on top of Dedipanel\PHPSeclibWrapperBundle\Server\ServerInterface.

$server = new Dedipanel\PHPSeclibWrapperBundle\Server\Server;
$server
    ->setHostname('localhost')
    ->setPort(22)
    ->setUser('test')
    ->setPassword('test)
;

 Connection Manager

The bundle provide a connection manager, allowing to use the same connection at different points :

$logger  = new Psr\Log\NullLogger(); // logger used to log ssh/sftp interactions.
$manager = $this->container->get('dedipanel.connection_manager');

$connection   = $manager->getConnectionFromServer($server);
$connectionId = $manager->getConnectionId($connection);

Generate private/public key

The bundle provide easy way to generate public/private key (see KeyHelper) and to store it (see FileKeyStore). By default, these keys are stored and retrieved to/from files, but you can implements you own KeyStore strategy.

$keyHelper    = $this->container->get('dedipanel.key_helper');
$privateKeyId = uniqid(true); 
$publicKey    = $keyHelper->createKey($privateKeyId);

You can also use the KeyHelper for directly uploading the public key to the server. You will need to provide a Connection instance for that :

$keyHelper->createKey($privateKeyId, $connection);

Logging


All versions of phpseclib-wrapper-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/framework-bundle Version >=2.1
symfony/validator Version >=2.1
phpseclib/phpseclib Version 2.0.*@dev
psr/log Version >=1.0,<2.0
symfony/twig-bundle Version >=2.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dedipanel/phpseclib-wrapper-bundle contains the following files

Loading the files please wait ....