Node.js for PHP Developers. Porting PHP to Node.js - Helion
ISBN: 978-14-493-3380-5
stron: 288, Format: ebook
Data wydania: 2012-11-29
Księgarnia: Helion
Cena książki: 92,65 zł (poprzednio: 107,73 zł)
Oszczędzasz: 14% (-15,08 zł)
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
Osoby które kupowały "Node.js for PHP Developers. Porting PHP to Node.js", wybierały także:
- Tablice informatyczne. Node.js 16,86 zł, (5,90 zł -65%)
- Node.js i TypeScript. Kurs video. Tworzenie skalowalnych mikroserwisów 169,00 zł, (67,60 zł -60%)
- Node.js. Kurs video. Tworzenie skalowalnych aplikacji webowych 79,00 zł, (31,60 zł -60%)
- Node.js. Projektowanie, wdrażanie i utrzymywanie aplikacji 54,90 zł, (27,45 zł -50%)
- Platforma Node.js. Przewodnik webdevelopera. Wydanie III 58,98 zł, (29,49 zł -50%)
Spis treści
Node.js for PHP Developers. Porting PHP to Node.js eBook -- spis treści
- Node.js for PHP Developers
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Preface
- The Mission
- Who I Am
- This Book
- About This Book
- Conventions Used in This Book
- Using Code Examples
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Node.js Basics
- The node and npm Executables
- Stack Traces
- Eclipse PDT
- 2. A Simple Node.js Framework
- An HTTP Server
- Predefined PHP Variables
- A PHP Example Page
- 3. Simple Callbacks
- Linearity
- Making Code Linear
- 4. Advanced Callbacks
- Anonymous Functions, Lambdas, and Closures
- PHP 5.3
- PHP 4
- 5. HTTP Responses
- Headers
- Body
- A PHP Example Page
- 6. Syntax
- String Literals
- Syntax Differences
- PHP Alternative Syntax
- 7. Variables
- Simple Variables
- Array Variables
- Other Variable Types
- Undefined Variables
- Scope
- 8. Classes
- Encapsulation
- Inheritance
- PHP parent and static Keywords
- 9. File Access
- Reading and Writing Files
- PHP file() API Function
- Low-Level File Handling
- Filenames
- 10. MySQL Access
- Database Approaches
- node-mysql
- 11. Plain Text, JSON, and XML
- Plain Text
- JSON
- XML
- 12. Miscellaneous Functions
- Array
- Time and Date
- File
- JSON
- Math
- String
- Type
- Text
- MySQL
- Variable
- php.js License
- Index
- About the Author
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Copyright