Pro PHP 8 MVC: Model View Controller Architecture-Driven Application Development, Second Edition
- 2h 58m
- Christopher Pitt
- Apress
- 2021
Examine the building blocks that make any good MVC framework using PHP 8. This book exposes all the considerations that many developers take for granted when using a popular framework, and teaches you how to make this MVC framework your own.
You'll quickly get started writing your first bit of framework code, then, you build a variety of examples using aspects of an MVC framework, including a router, a template engine, a database library, a persistence engine (ORM), and a testing framework. In the next section, you'll implement sessions, caches, file systems, queues, logging, and mail. You'll wrap up by building a larger scale sample web application: a sales website for a company that sells rockets.
Along the way, this book lays bare all the secret parts of MVC to take with you to apply to your own PHP-based MVC projects.
What You Will Learn
- Build PHP-based web applications using the model view controller (MVC) architecture
- Write your first bit of framework code
- Compare the code you write with how the popular frameworks do the same kinds of things
- Create various aspects of applications, engines, and other frameworks
- Wrap up with a sample case study application
Who This Book Is For
Experienced PHP and web developers. Some prior experience with PHP and web development at least recommended.
About the Author
Christopher Pitt is an experienced PHP and JavaScript/CSS web developer and writer, working at SilverStripe. He usually works on application architecture, though sometimes you’ll find him building compilers or robots. He is also the author of several web development books and is a contributor on various open source projects such as AdonisJs and Masonite.
In this Book
-
Ways to Use PHP
-
Writing Our First Bit of Code
-
Building a Router
-
Building a Template Engine
-
Building a Validator
-
Building a Database Library
-
Building an Object-Relational Mapper Library
-
Building a Dependency Injection Container
-
Testing Our Framework
-
Config, Cache, Sessions, Filesystems
-
Queues, Logging, Emails
-
Publishing Your Code