ssh2_tunnel

PECL ssh2 >= 0.9.0
ssh2_tunnel - Open a tunnel through a remote server
Manual
Code Examples

Example #1 Opening a tunnel to an arbitrary host

PHP Version: