Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

PHP remote closure executor

NotificationsYou must be signed in to change notification settings

kakawait/Jumper

Repository files navigation

Build StatusCode CoverageScrutinizer Quality ScoreDependency Status

Allow you to execute PHP Closure in other distant computer via SSH and without client/server setup.

Source computer dependency: PHP >= 5.3 (so might work on windows but untested)

Target computer dependencies: PHP >= 5.3, SSHd

<?phprequire'vendor/autoload.php';$authentication =new \Jumper\Communicator\Authentication\Rsa('root',$_SERVER['HOME'] .'/.ssh/id_rsa');$communicator =new \Jumper\Communicator\Ssh($authentication,array('host' =>'127.0.0.1'));$executor =new \Jumper\Executor($communicator,newJumper\Stringifier\Native());$array =array(2,1,4,3);$rsortedArray =$executor->run(function()use ($array) {rsort($array);return$array;    });var_dump($rsortedArray);// should print/*array(4) {  [0]=>  int(4)  [1]=>  int(3)  [2]=>  int(2)  [3]=>  int(1)}*/

About

PHP remote closure executor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp