This manual covers the Node.js for PHP Developers book by Daniel Howard. Published by O'Reilly Media in November 2012, this English-language guide is designed for experienced PHP developers looking to transition to Node.js. It highlights the similarities between the two languages and provides a method for porting entire PHP web applications to Node.js, while also offering techniques to refactor and improve existing PHP 4 or PHP 5 source code. The book aims to equip readers with the knowledge to maintain two fully functional codebases simultaneously.
The scope of this manual extends to practical application, demonstrating how to convert individual PHP pages to Node.js files using a simple Node.js framework. It details the process of refactoring blocking PHP code into non-blocking Node.js code utilizing callbacks, and covers the conversion of PHP syntax, variables, and types to their Node.js equivalents. Specific guidance is provided on implementing PHP classes and inheritance in Node.js, converting PHP file handling APIs, and comparing database approaches for MySQL in both environments. Furthermore, the manual addresses the conversion of PHP code for JSON or XML APIs into Node.js code for npm packages.
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
Author: Howard, Daniel
Publisher: O'Reilly Media
Illustration: N
Language: ENG
Title: Node.Js for PHP Developers: Porting PHP to Node.Js
Pages: 00288 (Unencrypted EPUB)
On Sale: 2012-11-29
SKU-13/ISBN: 9781449333607
Category: Computers : Programming Languages - JavaScript
Category: Computers : Programming Languages - PHP
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
Author: Howard, Daniel
Publisher: O'Reilly Media
Illustration: N
Language: ENG
Title: Node.Js for PHP Developers: Porting PHP to Node.Js
Pages: 00288 (Unencrypted EPUB)
On Sale: 2012-11-29
SKU-13/ISBN: 9781449333607
Category: Computers : Programming Languages - JavaScript
Category: Computers : Programming Languages - PHP