Not sure how "easy" this is, but if you're looking seriously at working with PHP, I recommend you look at Zend Framework, which is a free, open-source, and very comprehensive set of PHP web development components covering a huge range of functionality e.g. for MVC-style applications, declarative database mappings, and so on. You can just pick the components you need for your application, but they're all based on a common framework, which means it's easy to add in extra components. And it's a lot easier and more effective (and perhaps more reliable) than trying to code your own!
There are some books on ZF, the online documentation is pretty good, and I can also recommend the excellent "Practical Web 2.0 Applications With PHP" by Quentin Zervaas (Apress), which includes some stuff on how to add ZF components to your application.
Finally, the "PHP Cookbook" by David Sklar and Adam Trachtenberg (O Reilly) is always very useful.
There are many books to learn PHP but a beginner or even some professionals can not advise which one is the best. Some books are better from some point of view.
Here you can find a list of books with detailed information about them: Free PHP books on Knowsmore online library
Exploring PHP8 is a free eBook written by Larry Garfield and published on Leanpub. The book is available in the eBook in any format such as PDF, epub or mobi for kindle devices. The book as its name indicate explores PHP 8 features from JIT compilation, attributes, named arguments, to improved ones such as Union types, stringable interface, match() expressions, trailing commas in function definition and closures, weak maps, new string functions, token objects, variable dereferencing, type respecting variadics, safe division, class and objects improvements, date and time handling, locale improvements, error handling improvements, and Cryptographic Message Syntax support to avoid any confusion with content management systems (CMS).
The book is filled with in-depth explanations, examples, historical context, and the occasional pun, think of it as the only changelog you will ever enjoy reading.
The author didn’t miss any new feature or improvement on the PHP8 programming language without mentioning it even briefly. The book also talk about changes and backward compatibility challenges : Feature like stable sorting, numeric string handling, non numeric algorithmic, extensions in extensions out, stricter magic, stricter errors and warnings, resource evolution and devolution.
PHP 8.0 is a landmark release, including major new features, minor cleanup, and everything in between. This free ebook, provided by Platform.sh provides also detailed explanation on how to get PHP 8 up and running on Platform.sh from installation, configuration, upgrading PHP and local development with Lando.