2017 © Pedro Peláez
 

library node-php-process

Provides a standard for handing off processing to node and having node respond with its results.

image

contentasaurus/node-php-process

Provides a standard for handing off processing to node and having node respond with its results.

  • Monday, November 6, 2017
  • by contentasaurus
  • Repository
  • 3 Watchers
  • 0 Stars
  • 87 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 17 Versions
  • 2 % Grown

The README.md

node-php-process

Provides a standard for handing off processing to node and having node respond with its results., (*1)

In PHP

include 'src/NodePhpProcess.php';

use contentasaurus\NodePhpProcess;

$process = new NodePhpProcess();
$process
    ->script_path(__DIR__)
    ->content([
        'test' => 'json'
    ])
    ->run('errors.js')
    ->output($output)
    ->errors($errors);

// exit(var_dump($errors));
if(!empty($errors)) {
    trigger_error($errors, E_USER_ERROR);
    exit();
}

exit($output);

In JS

const requestProcessor = require('../src/RequestProcessor')

requestProcessor()
.then(data => {
    process.stdout.write(JSON.stringify(data))
})
.catch(err => {
    process.stderr.write(err)
})

The Versions

06/11 2017

dev-master

9999999-dev

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

06/11 2017

2.0.4

2.0.4.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

16/08 2017

2.0.3

2.0.3.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

26/04 2017

2.0.2

2.0.2.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

26/04 2017

2.0.1

2.0.1.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

10/01 2017

dev-develop

dev-develop

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

10/01 2017

v2.0.1

2.0.1.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

10/01 2017

v2.1.0

2.1.0.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

10/01 2017

v2.0.0

2.0.0.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

10/01 2017

dev-promise-refactor

dev-promise-refactor

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

18/10 2016

v1.0.3

1.0.3.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

18/10 2016

v1.1.1

1.1.1.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

18/10 2016

v1.1.0

1.1.0.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

18/10 2016

v1.0.2

1.0.2.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

15/10 2016

v1.0.0

1.0.0.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

15/10 2016

v1.0.1

1.0.1.0

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood

12/10 2016

dev-MVP-1

dev-MVP-1

Provides a standard for handing off processing to node and having node respond with its results.

  Sources   Download

MIT

by Jake Wood