2017-25 © Pedro Peláez
 

library node-php-process

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

image

paradowskicreative/node-php-process

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

  • Wednesday, June 13, 2018
  • by paradowski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % 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

13/06 2018

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

13/06 2018

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

13/06 2018

v2.1.1

2.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

13/06 2018

2.0.5

2.0.5.0

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

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

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