Popularity
1.5
Stable
Activity
0.0
Stable
47
1
4

Description

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

Code Quality Rank: L5
Programming language: PHP
License: MIT License
Tags: Miscellaneous     Closure     Remote     Executor    
Latest version: v1.0.1

Jumper alternatives and similar libraries

Based on the "Miscellaneous" category.
Alternatively, view Jumper alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Jumper or a related project?

Add another 'Miscellaneous' Library

README

Jumper

Build Status Code Coverage Scrutinizer Quality Score Dependency 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

<?php

require '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, new Jumper\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)
}
*/