没有合适的资源?快使用搜索试试~ 我知道了~
首页掌握PHP 7:构建高效可扩展应用的全面指南
掌握PHP 7:构建高效可扩展应用的全面指南
![](https://csdnimg.cn/release/wenkucmsfe/public/img/star.98a08eaa.png)
"《精通PHP 7》是一本专为开发专业Web应用而编写的指南,作者Branko Ajzele带领读者利用PHP 7的最新特性构建可扩展的应用程序。本书深入探讨了如何设计、配置和测试PHP 7代码,以实现高效、可读且健壮的程序。 在PHP 7的世界里,作者强调了服务器less架构和反应式编程范式的引入,这两个新特性使得开发者能够更灵活地构建和管理服务,同时提升应用程序的性能和响应性。通过学习依赖注入(Dependency Injection),读者将掌握如何编写优雅的代码,提高模块化和复用性。 书中详细讲解了如何利用PHP 7的新特性,如类型提示、null类型、常量解析等,以提升代码的清晰度和可维护性。此外,设计模式的应用也是本书的重要组成部分,例如工厂模式、单例模式和观察者模式,它们能帮助开发者创建更结构化的代码并解决常见问题。 值得注意的是,尽管PHP 7提供了很多改进,但本书也提醒读者,尽管出版时尽了最大努力确保信息准确,但书中的内容仍可能存在更新或变化,因此在实际项目中应结合最新的文档和最佳实践进行操作。版权方面,未经出版商Packt Publishing事先书面许可,禁止任何形式的复制、存储或传播,除非用于批判性文章或评论中的引用。 《精通PHP 7》是一本适合中级到高级PHP开发者深入学习和提升技能的实用指南,无论是初次接触PHP 7还是希望进一步优化现有项目的开发者,都能从中受益匪浅。"
资源详情
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/10548417/bg10.jpg)
[ iv ]
React event loop
252
Observables and event loop
256
Summary
259
Chapter 10: Common Design Patterns
260
Base patterns
261
The registry pattern
261
Creational patterns
262
The singleton pattern
263
The prototype pattern
264
The abstract factory pattern
265
The builder pattern
267
The object pool pattern
269
Behavioral patterns
271
The strategy pattern
271
The observer pattern
272
The lazy initialization pattern
274
The chain of responsibility pattern
276
Structural patterns
277
The decorator pattern
278
Summary
280
Chapter 11: Building Services
281
Understanding the client-server relationship
282
Working with SOAP
282
XML extensions
284
Creating server
289
Creating WSDL file
292
Creating client
296
Working with REST
298
JSON extensions
299
Creating server
300
Creating client
304
Working with Apache Thrift (RPC)
306
Installing Apache Thrift
306
Defining service
308
Creating server
311
Creating client
312
Understanding microservices
313
Summary
315
![](https://csdnimg.cn/release/download_crawler_static/10548417/bg11.jpg)
[ v ]
Chapter 12: Working with Databases
316
Working with MySQL
317
Installing MySQL
318
Setting up sample data
322
Querying via the MySQLi driver extension
325
Connecting 325
Error handling 325
Selecting 326
Binding parameters 329
Inserting 330
Updating 332
Deleting 333
Transactions 333
Querying via the PHP Data Objects driver extension
335
Connecting 336
Error handling 336
Selecting 337
Inserting 340
Updating 341
Deleting 341
Transactions 342
Working with MongoDB
343
Installing MongoDB
344
Setting up sample data
344
Querying via the MongoDB driver extension
345
Connecting 346
Error handling 347
Selecting 347
Inserting 349
Updating 350
Deleting 352
Transactions 353
Working with Redis
354
Installing Redis
354
Setting up sample data
355
Querying via the phpredis driver extension
356
Connecting 357
Error handling 357
Selecting 357
Inserting 359
Updating 361
Deleting 361
Transactions 362
Summary
363
![](https://csdnimg.cn/release/download_crawler_static/10548417/bg12.jpg)
[ vi ]
Chapter 13: Resolving Dependencies
364
Mitigating the common problem
365
Understanding dependency injection
367
Understanding dependency injection container
371
Summary
374
Chapter 14: Working with Packages
375
Understanding Composer
376
Understanding Packagist
378
Using third-party packages
380
Creating your own package
382
Distributing your package
385
Summary
389
Chapter 15: Testing the Important Bits
390
PHPUnit
391
Setting up the PHPUnit
392
Setting up a sample application
393
Writing test
398
Executing tests
402
Code coverage
403
Behat
406
Setting up Behat
407
Setting up a sample application
408
Writing test
410
Executing tests
416
phpspec
418
Setting up phpspec
418
Writing test
419
Executing tests
423
jMeter
426
Writing test
426
Executing tests
433
Summary
434
Chapter 16: Debugging, Tracing, and Profiling
435
Xdebug
436
Installation
437
Debugging
441
Tracing
449
![](https://csdnimg.cn/release/download_crawler_static/10548417/bg13.jpg)
[ vii ]
Profiling
451
Zend Z-Ray
453
Installing Zend Server
454
Setting up the virtual host
460
Using Z-Ray
466
Summary
469
Chapter 17: Hosting, Provisioning, and Deployment
470
Choosing the right hosting plan
471
Shared server
471
Virtual private server
472
Dedicated server
474
PaaS
475
Automating provisioning
478
Setting up the workstation machine
480
Setting up the server machine
481
Configuring Ansible
484
Provisioning a web server
486
Automating the deployment
487
Installing Deployer
488
Using Deployer
489
Continuous integration
495
Jenkins
496
Summary
497
Index
499
![](https://csdnimg.cn/release/download_crawler_static/10548417/bg14.jpg)
Preface
The PHP language has been around for quite some time now. What started out as a humble
set of scripts, soon turned into a powerful scripting language. The rise of various
frameworks and platforms paved the way into the hearts of many developers. Over time,
PHP coding standards sprung out, along with numerous testing solutions. These gave it
the solid enterprise foothold it has today.
The latest PHP 7.1 release brings forth enormous amount of improvements, both from the
language syntax and overall performance perspective. There has never been a better time to
dig into a PHP than now.
Throughout this book, we will be covering a wide range of topics. These might seem
seemingly random at first, but they reflect a minimum skill level PHP developers are
required to possess nowadays.
What this book covers
Chapter 1, The All New PHP, talks about the latest changes introduced to the PHP 7.1
language, most of which directly improve the quality and elegancy of written code.
Chapter 2, Embracing Standards, introduces you to important standards in the PHP
ecosystem. Presented standards affect the quality and elegancy of code, pushing ypu closer
to truly mastering PHP.
Chapter 3, Error Handling and Logging, stresses on the importance of robust error handling
and effective logging. You will learn how to handle errors and log truly important bits of
information--two disciplines that often lack proper attention in everyday PHP coding.
Chapter 4, Magic Behind Magic Methods, discusses the magic functions available in PHP
classes, and their beauty and importance. You will learn every PHP magic method, and
its meaning and use through practical examples.
Chapter 5, The Realm of CLI, explores command-line PHP, and its tools and processes. You
will learn how to use Symfony's Console component, work with input/output streams, and
handle processes.
剩余523页未读,继续阅读
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://profile-avatar.csdnimg.cn/16c5aae99dcf4b5388fa39c9736c8345_i_fisher.jpg!1)
i_fisher
- 粉丝: 2
- 资源: 42
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
会员权益专享
最新资源
- 计算机系统基石:深度解析与优化秘籍
- 《ThinkingInJava》中文版:经典Java学习宝典
- 《世界是平的》新版:全球化进程加速与教育挑战
- 编程珠玑:程序员的基础与深度探索
- C# 语言规范4.0详解
- Java编程:兔子繁殖与素数、水仙花数问题探索
- Oracle内存结构详解:SGA与PGA
- Java编程中的经典算法解析
- Logback日志管理系统:从入门到精通
- Maven一站式构建与配置教程:从入门到私服搭建
- Linux TCP/IP网络编程基础与实践
- 《CLR via C# 第3版》- 中文译稿,深度探索.NET框架
- Oracle10gR2 RAC在RedHat上的安装指南
- 微信技术总监解密:从架构设计到敏捷开发
- 民用航空专业英汉对照词典:全面指导航空教学与工作
- Rexroth HVE & HVR 2nd Gen. Power Supply Units应用手册:DIAX04选择与安装指南
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)