作者洛克哈特是“PHP The Right Way”的创始 人(这是一项广受欢迎的运动,旨在鼓励PHP*佳实践 ),他用实例阐述了这门编程语言中的新特性。你将学 到各种*佳实践,包括应用架构以及规划、数据库、 安全、测试、调试和应用部署。如果你已有PHP基础并 且想提升技能,这就是你该看的书。
Part Ⅰ. Language Features
1.The New php
Past
Present
Future
2.Features
Namespaces
Why We Use Namespaces
Declaration
Import and Alias
Helpful TiPS
Code to an Interface
Traits
Why We Use Traits
How to Create a Trait
How to Use a Trait
Generators
Create a Generator
Use a Generator
Closures
Create
Attach State
Zend OPcache
Enable Zend OPcache
Configure Zend OPcache
Use Zend OPcache
Built-in HTTP server
Start the Server
Configure the Server
Router Scripts
Detect the Built-in Server
Drawbacks
What's Next
Part Ⅱ.Good Practices
3.Standards
PHP-FIG to the Rescue
Framework Interoperability
Interfaces
Autoloading
Style
What Is a PSR?
PSR-1: Basic Code Style
PSR-2: Strict Code Style
PSR-3: Logger Interface
Write a PSR-3 Logger
Use a PSR-3 Logger
PSR-4: Autoloaders
Why Autoloaders Are Important
The PSR-4 Autoloader Strategy
How to Write a PSR-4 Autoloader (and Why You Shouldn't)
4.Components
Why Use Components?
What Are Components?
Components Versus Frameworks
Not All Frameworks Are Bad
Use the Right Tool for the Job
Find Components
Shop
Choose
Leave Feedback
Use PHP Components
5.Good Practices
Part Ⅲ.Deployment, Testing, and Tuning
6.Hosting
7.Provisioning
8.Tuning
9.Deployment
10.Testing
11.Profiling
12.HHVMand Hack
13.Community
A.Installing PHP
B.Local Development Environments
Index
¥9.00
¥40.00
¥516.00
¥381.00
¥9.90