图书介绍

现代PHP 英文PDF|Epub|txt|kindle电子书版本网盘下载

现代PHP 英文
  • (美)洛克哈特著 著
  • 出版社: 南京:东南大学出版社
  • ISBN:9787564159146
  • 出版时间:2015
  • 标注页数:248页
  • 文件大小:25MB
  • 文件页数:266页
  • 主题词:PHP语言-程序设计-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

现代PHP 英文PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

Part Ⅰ.Language Features1

1.The New PHP1

Past1

Present2

Future3

2.Features5

Namespaces5

Why We Use Namespaces7

Declaration8

Importand Alias9

Helpful Tips11

Code to an Interface13

Traits17

Why We Use Traits18

How to Create a Trait19

How to Use a Trait21

Generators22

Create a Generator22

Use a Generator23

Closures25

Create25

Attach State27

Zend OPcache29

Enable Zend OPcache29

Configure Zend OPcache31

Use Zend OPcache31

Built-in HTTP server32

Start the Server32

Configure the Server33

Router Scripts33

Detect the Built-in Server34

Drawbacks34

What's Next34

Part Ⅱ.Good Practices34

3.Standards37

PHP-FIG to the Rescue38

Framework Interoperability38

Interfaces39

Autoloading39

Style39

What Is a PSR?40

PSR-1:Basic Code Style40

PSR-2:Strict Code Style41

PSR-3:Logger Interface45

Write a PSR-3 Logger46

Use a PSR-3 Logger47

PSR-4:Autoloaders48

Why Autoloaders Are Important48

The PSR-4 Autoloader Strategy49

How to Write a PSR-4 Autoloader(and Why You Shouldn't)49

4.Components51

Why Use Components?51

What Are Components?52

Components Versus Frameworks53

Not All Frameworks Are Bad54

Use the Right Tool for the Job55

Find Components55

Shop56

Choose56

Leave Feedback57

Use PHP Components57

How to Install Composer58

How to Use Composer59

Example Project61

Composer and Private Repositories64

Create PHP Components66

Vendor and Package Names66

Namespaces66

Filesystem Organization67

The composer.json File68

The README file70

Component Implementation71

Version Control72

Packagist Submission73

Using the Component74

5.Good Practices75

Sanitize,Validate,and Escape75

Sanitize Input76

Validate Data79

Escape Output80

Passwords80

Never Know User Passwords81

Never Restrict User Passwords81

Never Email User Passwords81

Hash User Passwords with bcrypt82

Password Hashing API82

Password Hashing API for PHP<5.5.087

Dates,Times,and Time Zones87

Set a Default Time Zone88

The DateTime Class88

The DateInterval Class89

The DateTimeZone Class91

The DatePeriod Class92

The nesbot/carbon Component93

Databases93

The PDO Extension93

Database Connections and DSNs93

Prepared Statements96

Query Results98

Transactions100

Multibyte Strings103

Character Encoding104

Output UTF-8 Data105

Streams106

Stream Wrappers106

Stream Context109

Stream Filters110

Custom Stream Filters112

Errors and Exceptions115

Exceptions115

Exception Handlers118

Errors119

Error Handlers121

Errors and Exceptions During Development123

Production124

Part Ⅲ.Deployment,Testing,and Tuning124

6.Hosting129

Shared Server129

Virtual Private Server130

Dedicated Server131

PaaS131

Choose a Hosting Plan132

7.Provisioning133

Our Goal134

Server Setup134

First Login134

Software Updates135

Nonroot User135

SSH Key-Pair Authentication136

Disable Passwords and Root Login138

PHP-FPM138

Install139

Global Configuration139

Pool Configuration140

nginx143

Install143

Virtual Host143

Automate Server Provisioning146

Delegate Server Provisioning146

Further Reading147

What'sNext147

8.Tuning149

The phpini File149

Memory150

Zend OPcache151

File Uploads152

Max Execution Time153

Session Handling154

Output Buffering155

Realpath Cache155

Up Next155

9.Deployment157

Version Control157

Automate Deployment157

Make It Simple158

Make It Predictable158

Make It Reversible158

Capistrano158

How It Works158

Install159

Configure159

Authenticate161

Prepare the Remote Server161

Capistrano Hooks162

Deploy Your Application163

Roll Back Your Application163

Further Reading163

What's Next163

10.Testing165

Why Do We Test?165

When Do We Test?166

Before166

During166

After166

What Do We Test?166

How Do We Test?167

Unit Tests167

Test-Driven Development(TDD)167

Behavior-Driven Development(BDD)167

PHPUnit168

Directory Structure169

Install PHPUnit170

Install Xdebug170

Configure PHPUnit171

The Whovian Class172

The Whovian Test Test Case173

Run Tests175

Code Coverage176

Continuous Testing with Travis CI177

Setup177

Run178

Further Reading178

What's Next179

11.Profiling181

When to Use a Profiler181

Types of Profilers181

Xdebug182

Configure182

Trigger183

Analyze183

XHProf184

Install184

XHGUI184

Configure185

Trigger185

New Relic Profiler186

Blackfire Profiler186

Further Reading186

What's Next186

12.HHVM and Hack187

HHVM187

PHP at Facebook188

HHVM and Zend Engine Parity189

Is HHVM Right for Me?190

Install190

Configure191

Extensions192

Monitor HHVM with Supervisord192

HHVM,FastCGI,and Nginx194

The Hack Language195

Convert PHP to Hack196

What is a Type?196

Static Typing198

Dynamic Typing198

Hack Goes Both Ways199

Hack Type Checking199

Hack Modes200

Hack Syntax200

Hack Data Structures202

HHVM/Hack vs.PHP203

Further Reading204

13.Community205

Local PUG205

Conferences205

Mentoring206

Stay Up-to-Date206

Websites206

Mailing Lists206

Twitter206

Podcasts206

Humor207

A.Installing PHP209

B.Local Development Environments229

Index237

热门推荐