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
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyNode.js for PHP Developers
 
2.0

(based on 1 review)

Ratings Distribution

  • 5 Stars

     

    (0)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

Reviewed by 1 customer

Displaying review 1

Back to top

(8 of 10 customers found this review helpful)

 
2.0

not really comprehensive

By Noder

from Finland

About Me Developer

Pros

  • Accurate
  • Easy to understand
  • Helpful examples

Cons

  • 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