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
Daniel Howard has worked as a software developer for over 15 years. He has worked at startups, Fortune 500 companies, and several in between. He has seen companies and individual developers struggle to move from one technology to another. He believes everybody can keep one foot firmly planted on one side and plant his other foot in the new technology, and wants to help them learn how to do so.
The animal on the cover of Node.js for PHP Developers is the Wallachian or Cretan sheep, which is found in Crete, Wallachia, Hungary, and Western Asia. Their horns are exceedingly large and twisted and their bodies are very strong—they are said to be extremely vicious and unruly. Their fleece is composed of a mix of wool and hair, which makes it long and silky, like that of a spaniel, and of great length, falling almost to the ground.They are large animals with long, deep trunks. Their tails are long (60–65 centimeters), broad, and fat at the base, gradually narrowing toward the end. They are used for the production of wool, meat, and milk.Their horns are their most striking feature. The first spiral turn is always the largest, and the horns are not precisely the same in every specimen. In the ram, they usually spring perpendicularly from the ridge of the frontal bone, and then take a spiral form. In the female, they protrude nearly at right angles from the head, and then become twisted in a singular way.The cover image is from Shaw’s Zoology. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont’s TheSansMonoCondensed.
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..
Bottom Line No, I would not recommend this to a friend