If youre 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, youll also discover how to refactor and improve existing PHP 4 or PHP 5 source code.At the end, youll 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 My SQL database in Node.js and PHPConvert PHP code for JSON or XML APIs into Node.js code for npm packages
Daniel Howard
Node.js for PHP Developers [EPUB ebook]
Porting PHP to Node.js
Node.js for PHP Developers [EPUB ebook]
Porting PHP to Node.js
Buy this ebook and get 1 more FREE!
Language English ● Format EPUB ● Pages 288 ● ISBN 9781449333805 ● Publisher O’Reilly Media ● Published 2012 ● Downloadable 6 times ● Currency EUR ● ID 2595614 ● Copy protection Adobe DRM
Requires a DRM capable ebook reader