The Art of Modern PHP 8
This is the code repository for The Art of Modern PHP 8, published by Packt.
Your practical and essential guide to getting up to date with PHP 8
What is this book about?
PHP has come a long way since its introduction. While the language has evolved with PHP 8, there are still a lot of websites running on a version of PHP that is no longer supported. If you are a PHP developer working with legacy PHP systems and wish to discover the tenants of modern PHP, this book is a perfect solution for you.
This book covers the following exciting features:
- 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
If you feel this book is for you, get your copy today!
Instructions and Navigations
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
name; // Simon
$instance2 = new SimpleClass('Sally');
echo "\n" . $instance2->name; //Sally
Following is what you need for this book: The book is for existing PHP developers and CTO-level professionals who are working with PHP technologies, including legacy PHP, in production. The book assumes beginner-level knowledge of PHP programming as well as experience with server-side development.
With the following software and hardware list you can run all code files present in the book (Chapter 1-12).
Software and Hardware List
Chapter | Software required | OS required |
---|---|---|
1-11 | php 8.0 | Windows, Mac OS X, and Linux (Any) |
12 | php 8.1 | Windows, Mac OS X, and Linux (Any) |
Related products
-
PHP 8 Programming Tips, Tricks and Best Practices [Packt] [Amazon]
-
Drupal 9 Module Development - Third Edition [Packt] [Amazon]
Get to Know the Author
Joseph Edmonds has over 15 years of experience working with PHP and building websites for eCommerce using PHP. He is the Director of Long Term Support LTD and Zend Certified Engineer