Roosevelt

Node.js PHP runner — Changelog

🔝 Scroll to top

1.2.0

  • Added runCode and runCodeWithData methods so PHP code can be executed from memory instead of from a file.
  • Hardened input handling to prevent command injection.
  • Altered thrown error message to include PHP error output instead of being written directly to stderr.
  • Altered error thrown when failing to start PHP at all. It now reports the underlying spawn error instead of PHP process exited with code undefined.
  • Added TypeScript definitions for run and runWithData, which were previously missing.
  • Updated various dependencies.

1.1.0

  • Added run and runWithData methods so this module can be used as a general purpose PHP runner.
  • Updated various dependencies.

1.0.2

  • Added TypeScript definitions.
  • Various dependencies bumped.

1.0.1

  • Renamed package from express-php-view-engine to php. Thanks to Elmer Bulthuis for transferring the package name.
  • Various dependencies bumped.

1.0.0

  • Initial version of superseding project.
    • express-php-view-engine notably does not attempt to finish the work of the old php module. Instead it allows the native PHP parser to execute as a child process within Express applications.

0.0.1

  • Initial version of original project.
    • Originally the php module on npm was used by a separate project that attempted to implement a PHP parser in JavaScript for Node.js, but was never finished. One work in progress version was published, then the project remained stale for 8 years.