Node.js for PHP Developers


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
Chapter 1. Node.js Basics
Chapter 2. A Simple Node.js Framework
Chapter 3. Simple Callbacks
Chapter 4. Advanced Callbacks
Chapter 5. HTTP Responses
Chapter 6. Syntax
Chapter 7. Variables
Chapter 8. Classes
Chapter 9. File Access
Chapter 10. MySQL Access
Chapter 11. Plain Text, JSON, and XML
Chapter 12. Miscellaneous Functions

Book Details

  • Paperback: 288 pages
  • Publisher: O’Reilly Media (December 2012)
  • Language: English
  • ISBN-10: 1449333605
  • ISBN-13: 978-1449333607
Download [6.9 MiB]

You may also like...

No Responses

  1. joblackz says:

    Thanks

Leave a Reply