Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering PHP 7
  • Toc
  • feedback
Mastering PHP 7

Mastering PHP 7

By : Branko Ajzele
4.7 (7)
close
Mastering PHP 7

Mastering PHP 7

4.7 (7)
By: Branko Ajzele

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)
close
16
Debugging, Tracing, and Profiling

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.

Chapter 6, Prominent OOP Features, looks at a subset of features that turn PHP into a powerful OOP language. You will learn important concepts behind PHP OOP features, part of which may escape everyday code base as they find more use as building blocks of various frameworks.

Chapter 7, Optimizing for High Performancetalks about the importance of performance optimization, providing hands-on solutions along the way. You will learn about details of the PHP performance optimization, where small configuration changes can affect the overall application performance.

Chapter 8, Going Serverless, outlines using PHP and its use in serverless infrastructure. You will gain an insight into the emerging serverless architecture, along with utilizing it via two of the dominant PaaS (platform as a service) solutions in the market.

Chapter 9, Reactive Programming, covers the emerging reactive programming paradigm that found its way into the PHP ecosystem. You will learn the basic principles of reactive programming using the synchronous coding techniques to write asynchronous code via icicle, one of the most dominant libraries in the ecosystem now.

Chapter 10, Common Design Patterns, focuses on the subset of design patterns, and the most common ones used in PHP programming. You will learn the practical implementation of several important design patterns, which, in turn, will result in more elegant, readable, manageable, and testable code.

Chapter 11, Building Services, takes you through REST, SOAP, and RPC style services, alongside with the microservice architecture. You will learn how to create a SOAP and REST web server, alongside their respective client counterparts.

Chapter 12, Working with Databases, explains the several types of database PHP programmers need to interact with, such as transactional SQL, NoSQL, key-value, and search databases. You will learn how to query the MySQL, Mongo, and Redis databases.

Chapter 13, Resolving Dependencies, explores the dependency issue and the means to resolve it. You will learn how to solve the dependency issue using the dependency injection and dependency container techniques.

Chapter 14, Working with Packages, covers the ecosystem around PHP packages, and their creation and distribution. You will learn how to find and use third-party packages to enrich applications, along with a quick glimpse of possibly creating and distributing its own packages.

Chapter 15, Testing the Important Bits, dives into several types of testing, emphasizing where one might be more important than the other. You will learn several most common types of testing done for PHP web applications.

Chapter 16, Debugging, Tracing, and Profiling, teaches you the most common tools for debugging, tracing, and profiling PHP applications. You will learn how to utilize several various tools to achieve effective debugging, tracing, and profiling of your application.

Chapter 17, Hosting, Provisioning, and Deployment, discusses making an informed decision for hosting the application, along with provisioning, deployment, and continuous integration processes in place. You will learn about the difference between hosting solutions and the automated process of getting the code from local to production machines.

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete