PHPackages                             dedipanel/phpseclib-wrapper-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dedipanel/phpseclib-wrapper-bundle

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

dedipanel/phpseclib-wrapper-bundle
==================================

PHPSeclib Wrapper with connections manager, logging, os-specific helpers, ...

1.0.0(11y ago)34.4k3[1 PRs](https://github.com/dedicated-panel/PHPSeclibWrapperBundle/pulls)1MITPHPPHP &gt;=5.3.2

Since Dec 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dedicated-panel/PHPSeclibWrapperBundle)[ Packagist](https://packagist.org/packages/dedipanel/phpseclib-wrapper-bundle)[ RSS](/packages/dedipanel-phpseclib-wrapper-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (7)Versions (2)Used By (1)

PHPSeclib Wrapper Bundle
========================

[](#phpseclib-wrapper-bundle)

[![Build Status](https://camo.githubusercontent.com/2cd50327cb8dce503da2372fe45cedcee4e66111a87a6a40079d819bab4dbbcd/68747470733a2f2f7472617669732d63692e6f72672f6465646963617465642d70616e656c2f5048505365636c69625772617070657242756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/NiR-/PHPSeclibWrapperBundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/d9deae126bb691829ab5faf9ef9d2a10cb51a43f45785694613e443388ce7142/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e69522d2f5048505365636c69625772617070657242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d33313134323062353964306233363336656233343663643138353733623836346663323331643166)](https://scrutinizer-ci.com/g/NiR-/PHPSeclibWrapperBundle/)

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
-------

[](#install)

```
composer require phpseclib/phpseclib 2.0.*@dev
composer require dedipanel/phpseclib-wrapper-bundle ~1.0

```

How to use
----------

[](#how-to-use)

### Server

[](#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

[](#generate-privatepublic-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

[](#logging)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3843278fdd1e5baafa0a935118386d1d30d94bc0f8fff5fcbec4154c7034651?d=identicon)[NiR-](/maintainers/NiR-)

---

Top Contributors

[![akerouanton](https://avatars.githubusercontent.com/u/557933?v=4)](https://github.com/akerouanton "akerouanton (141 commits)")

---

Tags

sshsftpphpseclib

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dedipanel-phpseclib-wrapper-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dedipanel-phpseclib-wrapper-bundle/health.svg)](https://phpackages.com/packages/dedipanel-phpseclib-wrapper-bundle)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[phpro/soap-client

A general purpose SoapClient library

8885.6M46](/packages/phpro-soap-client)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
