Skip to content

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

License

Notifications You must be signed in to change notification settings

phpseclib/libssh2-compatibility-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages