Node.js for PHP Developers
Porting PHP to Node.js
Publisher: O'Reilly Media
Final Release Date: November 2012
Pages: 288

If you’re an experienced PHP developer, you already have a head start on learning how to write Node.js code. In this book, author Daniel Howard demonstrates the remarkable similarities between the two languages, and shows you how to port your entire PHP web application to Node.js. By comparing specific PHP features with their Node counterparts, you’ll also discover how to refactor and improve existing PHP 4 or PHP 5 source code.

At the end, you’ll have two fully functional codebases to provide to your users. You can update both of them simultaneously, using this book as a reference to important aspects of PHP and Node.js.

  • Use a simple Node.js framework to convert individual PHP pages to Node.js files
  • Refactor blocking PHP source code to non-blocking Node.js source code that uses callbacks
  • Convert PHP syntax, variables, and types to Node.js
  • Use a step-by-step technique for implementing PHP classes and class inheritance in Node.js
  • Convert PHP file handling APIs into their Node.js equivalents
  • Compare approaches for using a MySQL database in Node.js and PHP
  • Convert PHP code for JSON or XML APIs into Node.js code for npm packages
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyNode.js for PHP Developers

(based on 1 review)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 1 customer

Displaying review 1

Back to top

(10 of 13 customers found this review helpful)


not really comprehensive

By Noder

from Finland

About Me Developer


  • Accurate
  • Easy to understand
  • Helpful examples


  • Not comprehensive enough

Best Uses

    Comments about oreilly Node.js for PHP Developers:

    Well, this books covers how to convert php pages int node.js. That's it. This book does not cover anything else. You don't learn how to exploit node.js features, so this is not very good node.js book..

    If you just want to convert your existing php-code to javascript and run it via node.js, this is book for you. But if you want to learn how to take advantage of node.js and it's modules, etc, you should definitely read something else.

    Displaying review 1

    Back to top

    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Immediate Access - Go Digital what's this?
    Ebook:  $25.99
    Formats:  DAISY, ePub, Mobi, PDF
    Print & Ebook:  $32.99
    Print:  $29.99