Preface
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
Whats 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 Shouldnt)
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 Develomn Evironments
Index
洛克哈特,开发了Slim框架,这是一个PHP微型框架,适合快开Web应用和API。乔希还是“PHP之道”的发起人和当前的维护者。乔希·洛克哈特是New Media Campaigns的开发者,这个机构位于北卡罗来纳州卡勃罗市,提供多方面的服务,包括Web设计、开发和营销。他热衷于使用HTML、CSS、PHP、JavaScript、Bash和各种内容管理框架开发应用。