
Node.js for PHP Developers
Porting PHP to Node.js
by Daniel Howard
288 pages· 2012· ISBN 9781449333805
About
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
Discuss Node.js for PHP Developers with other readers
Join or start a book club for Node.js for PHP Developers on Readfeed. Live chat, shared reading progress, and AI discussion questions — free to get started.
Frequently asked questions
How do I join a book club for Node.js for PHP Developers?
Sign up free on Readfeed, then browse public clubs or start your own club with Node.js for PHP Developers as the current read. Invite friends with a share link and discuss together with live chat and AI discussion questions.
Can I discuss Node.js for PHP Developers with other readers online?
Yes. Readfeed book clubs let you chat live, share progress, and join discussions about Node.js for PHP Developers with readers worldwide — whether your club is virtual, in-person, or hybrid.
Is Readfeed free?
Yes. Creating an account and joining book clubs is free. Sign up to find readers who love the same books and start discussing today.