Node.js for PHP Developers: Converting PHP into Server-Side JavaScript
By: Daniel Howard | Publisher: Shroff/O'Reilly | Year: 2012
ISBN: 9789351102236
MRP: Rs. 775.00
You Pay: Rs. 697.50
You save: Rs. 77.50 ( 10% )
Usually ships in 2-3 days
Reward points: 6 points
⚠️ Ships only in Bangladesh, Bhutan, India, Maldives, Nepal, Sri Lanka, and the United Republic of Tanzania.
Description
If you’re an experienced PHP developer, youalready have a head start on learning how to write Node.js code. In this book,author Daniel Howard demonstrates the remarkable similarities between the twolanguages, and shows you how to port your entire PHP web application toNode.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 sourcecode.
At the end, you’ll have two fully functional codebases to provide to yourusers. You can update both of them simultaneously, using this book as areference 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