It is recommended to use Gitbook for the best reading experience.
As a programmer who has used PHP for many years, the company's projects have also experienced upgrades from 5 to 7. During this period, the project also encountered some bugs caused by the inconsistency between php7 functions and php5. I have been looking for a book that can introduce the new features and functions of php 7 in detail, and then I found this book. Although it has been almost 4 years since this book was released, for those who want to know more about php7, what is described in it I think the content is quite valuable. And I also very much agree with some of the views of the author of this book. I just hope that more people can read it, so I would like to try to translate this book when I have time during the National Day holiday. This book is actually three independent books, but if you feel that these three books have some shortcomings when you read them individually, I feel that these three books are combined into one and they complement each other very well. Module 2 of this book, which is "High Performance PHP 7", has been translated by Teacher Lu Yi, and I will no longer translate this module. If my translation can help everyone, it will be my greatest honor.
PHP 7 took the open source community by storm, breaking speed records for previous versions and bringing renewed attention to it. In its most fundamental sense, it has been significantly rewritten by the core engineering team while still maintaining a high degree of backwards compatibility. PHP is a good language for developing web applications. It is essentially a server-side scripting language also used for general-purpose programming. PHP 7 is the latest version, offering major backwards compatibility breakthroughs and focusing on improving performance and speed. This means you can maintain high traffic to your website with low-cost hardware and servers through a multi-threaded web server.
Module 1, PHP 7 Programming Guide, this module is centered on PHP 7 and demonstrates intermediate and advanced PHP technology. Each example is designed to solve a real problem that PHP developers like you face every day. It also introduces new ways of writing PHP code that are only available in PHP 7. In addition, we discuss the issue of backward compatibility breaks and provide you with extensive guidance on when and where you need to modify your PHP 5 code to produce correct results when run under PHP 7. This module also includes the latest PHP 7.x features. By the end of this module, you will have the tools and skills you need to deliver efficient applications for your website and business.
Module 2, Learn PHP 7 High Performance, this module is a quick introduction to PHP 7 that will improve your productivity and coding skills. The concepts covered will enable you, as a PHP programmer, to raise the performance standards of your applications. We'll introduce you to the new features in PHP 7, and then introduce the concepts of object-oriented programming (OOP) in PHP 7. Next, we will clarify how to improve PHP 7 application performance and database performance. Through this module, you will be able to improve the performance of your program using various benchmarking tools discussed in the module. Finally, the module discusses some best practices in PHP programming to help you improve the quality of your code.
Module 3, Updating Legacy Applications with PHP 7, this module will show you how to upgrade your application both practically and technically by extracting and replacing legacy components rather than in terms of using tools like frameworks and libraries. We'll take a step-by-step approach, moving slowly and methodically to fundamentally improve your application. We'll show you how dependency injection replaces new and global dependencies. We'll also show you how to change presentation logic to view files and action logic to controllers. Plus, we'll keep your application running at all times. Each completed step along the way leaves your codebase fully functioning at a higher level of quality. When we're done, you'll be able to breeze through your code like the wind. Your code will be autoloaded, dependency injected, unit tested, layer separated and front-end controlled. Most of the very limited code we will add to your application is specific to this module. We will improve ourselves as programmers and improve the quality of traditional applications.
To successfully implement the examples presented in this module, all you need is a computer, 100MB of additional disk space, and a text or code editor (not a word processor!). Chapter 1 will introduce how to set up a PHP 7 development environment. Having a web server is optional because PHP 7 includes a development web server. An Internet connection is not required, but may be required to download code (such as the PSR-7 interface set) and view the PHP 7.x documentation.
Any hardware that meets the specifications running the latest version of the following software should be sufficient to pass this module.
You will need to refer to "Chapter 2, Prerequisites" of this module to understand the basic hardware and software requirements required for this module. This chapter describes these requirements in detail.
If you are an aspiring web developer, mobile app developer or backend programmer with basic experience in PHP programming and want to develop performance-critical applications, then this course is for you. It will take your PHP programming skills to the next level.
The code package for the course is also hosted on github https://GitHub.com/packtpublishing/php-7-be-pro-at-applications-development.
The translator translated this book purely for learning purposes and personal interests , without pursuing any financial gain.
The translator reserves the right to authorize this version of the translation, and other rights are subject to the claims of the original author and the publisher.
This translation is for study and research reference only and may not be publicly disseminated or used for commercial purposes. Those who are able to read English books please purchase genuine support.
CC-BY 4.0