How to install SSH2 extension for PHP on Windows
Step 1: Download SSH2 release at here
Ex: for PHP 5.4 http://windows.php.net/downloads/pecl/releases/ssh2/0.12/php_ssh2-0.12-5.4-ts-vc9-x86.zip
Step 2: extract file php_ssh2.dll then place it in your extension folder like: D:\AppServ\php5\ext
Step 3: extract file libssh2.dll then place it in your PHP’s folder like: D:\AppServ\php5
Step 4: Open file php.ini then uncomment line:
;extension=php_ssh2.dll
Step 5: restart Apache
Now you can use SSH2 extension for PHP