PHP Classes

PHP Node.js: Execute JavaScript using Node.js from PHP

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-02 (4 months ago) RSS 2.0 feedStarStarStarStar 64%Total: 1,728 All time: 2,269 This week: 107Up
Version License PHP version Categories
php-nodejs 1.7BSD License5.0PHP 5, Emulators


This class can execute JavaScript using Node.js from PHP.

It can take a given JavaScript source file and executes it by running the Node.js program.

The class changes the current directory to the path of the given JavaScript file.

Optionally it can output debug messages, pass an array of parameters to JavaScript and pre-load jQuery.


I need a PHP class for running nodejs script
How to execute nodejs script using exec()

Innovation Award
PHP Programming Innovation award nominee
July 2013
Number 3

Prize: One downloadable copy of PhpED Professional
Node.js is runtime engine that can execute given JavaScript code.

This class simplifies the execution of JavaScript code started from a PHP script by calling the Node.js runtime engine passing given parameters from PHP.

Manuel Lemos
Picture of Dean Gostiša
  Performance   Level  
Name: Dean Gostiša <contact>
Classes: 1 package by
Country: Slovenia Slovenia
Age: 34
All time rank: 16686 in Slovenia Slovenia
Week rank: 569 Up1 in Slovenia Slovenia Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file PHPNodeJS.php Class Class source
Accessible without login Plain text file PHPNodeJSExample.php Example Example script
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,269
This week:107Up
 User Ratings  
 All time