Skip to content

Pinch1A/libssh2-compatibility-layer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

libssh2-compatibility-layer

Let's say your application has calls to PHP's ssh2_* functions but you don't have libssh2 installed. With libssh2-compatibility-layer all you need to do is include phpseclib.php and (assuming you have phpseclib installed in the include_path) and they should work without issue!

An example follows:

<?php
include('phpseclib.php');

$ssh = ssh2_connect('www.domain.tld');
echo ssh2_fingerprint($ssh);

About

include this and all your ssh2_* function calls should now work even if you don't have libssh2 installed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published