Throughout this chapter, we very briefly scratched the surface of some of the most popular types of PHP application testing. The test driven development (TDD) and behaviour driven development comprise of a very large and important chunk of it. Luckily, the PHP ecosystem provides two excellent frameworks, PHPUnit and Behat, which makes these types of testing easy to work with. Although fundamentally different, PHPUnit and Behat complete each other in a sense that they ensure our application is tested both from the smallest unit of functionality to a logical outcome of overall functionality point of view. phpspec on the other hand seems to sit in the middle of the two, trying to address these two challenges in its own uniform way. We further glossed over Apache jMeter, seeing how easy it is to kick off a performance...

Mastering PHP 7
By :

Mastering PHP 7
By:
Overview of this book
PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically
The book starts by unveiling the new features of PHP 7 and walks you through several important standards set by PHP Framework Interop Group (PHP-FIG). You’ll see, in detail, the working of all magic methods, and the importance of effective PHP OOP concepts, which will enable you to write effective PHP code. You will find out how to implement design patterns and resolve dependencies to make your code base more elegant and readable. You will also build web services alongside microservices architecture, interact with databases, and work around third-party packages to enrich applications. This book delves into the details of PHP performance optimization. You will learn about serverless architecture and the reactive programming paradigm that found its way in the PHP ecosystem. The book also explores the best ways of testing your code, debugging, tracing, profiling, and deploying your PHP application.
By the end of the book, you will be able to create readable, reliable, and robust applications in PHP to meet modern day requirements in the software industry.
Table of Contents (18 chapters)
Preface
The All New PHP
Embracing Standards
Error Handling and Logging
Magic Behind Magic Methods
The Realm of CLI
Prominent OOP Features
Optimizing for High Performance
Going Serverless
Reactive Programming
Common Design Patterns
Building Services
Working with Databases
Resolving Dependencies
Working with Packages
Debugging, Tracing, and Profiling
Hosting, Provisioning, and Deployment
How would like to rate this book
Customer Reviews