2017 © Pedro PelĂĄez
 

library jumper

A remote closure executor!

image

kakawait/jumper

A remote closure executor!

  • Friday, March 21, 2014
  • by kakawait
  • Repository
  • 2 Watchers
  • 43 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 5 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Jumper

Build Status Code Coverage Scrutinizer Quality Score Dependency Status, (*1)

Allow you to execute PHP Closure in other distant computer via SSH and without client/server setup., (*2)

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

Target computer dependencies: PHP >= 5.3, SSHd, (*4)

<?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)
}
*/

The Versions

21/03 2014

dev-master

9999999-dev https://github.com/kakawait/jumper

A remote closure executor!

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thibaud LeprĂȘtre

remote closure executor

21/03 2014

1.0.1

1.0.1.0 https://github.com/kakawait/jumper

A remote closure executor!

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thibaud LeprĂȘtre

remote closure executor

02/03 2014

1.0.0

1.0.0.0 https://github.com/kakawait/jumper

A remote closure executor!

  Sources   Download

MIT

The Requires

 

by Thibaud LeprĂȘtre

remote closure executor

28/02 2014

1.0.0-BETA2

1.0.0.0-beta2 https://github.com/kakawait/jumper

A remote closure executor!

  Sources   Download

MIT

The Requires

 

by Thibaud LeprĂȘtre

remote closure executor

28/05 2013

1.0.0-BETA1

1.0.0.0-beta1 https://github.com/kakawait/jumper

A remote closure executor!

  Sources   Download

MIT

The Requires

 

by Thibaud LeprĂȘtre

remote closure executor

28/05 2013

0.9.0

0.9.0.0 https://github.com/kakawait/jumper

A remote closure executor!

  Sources   Download

MIT

The Requires

 

by Thibaud LeprĂȘtre

remote closure executor