A PHP developer's guide to learning best practices, applying the latest PHP features, and implementing modern development practices to their existing projects Key Features * Discover the latest PHP 8.1 features and modern web development practices * Refactor your legacy codebase using modern features and styles in PHP * Explore best practices and design patterns to solve common problems in backend web development Book Description PHP is perhaps the most widely used language powering the world wide web. It's the language behind some of the most popular and powerful open-source website systems. Learning the latest and greatest capabilities and methodologies in PHP will allow you to get the most out of open source, bespoke, and legacy systems. The book starts with object-oriented programming (OOP) in PHP and related language features. Starting with the basics, you will work through modern programming techniques such as inheritance, contrasting this with composition, and then finally looking at some more advanced language features. You will learn about the MVC pattern by building your own MVC system. In addition to this, you'll explore what a DI container does by building a toy DI container. Later chapters will give you an overview of Composer and how to use it to create reusable PHP packages. You'll also find techniques to deploy these packages effectively so that other developers can use them. By the end of this PHP book, you will have learned PHP and its modern best practices as well as understood how to take advantage of modern PHP in legacy systems and update those systems effectively. What you will learn * Understand how to use modern PHP features such as objects, types, and more * Get to grips with PHP package management using Composer * Explore dependency injection for your PHP applications * Discover the difference between legacy and modern PHP 8 code and practice * Write clean PHP code and implement design patterns * Get hands-on with modern PHP using examples applying MVC and DI techniques Who This Book Is For The book is for existing PHP developers and CTO-level professionals who are working with PHP, including legacy PHP, in production. The book assumes beginner-level knowledge of PHP programming as well as experience with server-side development.
Book InformationISBN 9781800566156
Author Joseph EdmondsFormat Paperback
Page Count 258
Imprint Packt Publishing LimitedPublisher Packt Publishing Limited
Weight(grams) 75g