Book description
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
- 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.
Table of contents
- Cover
- Front Matter
- 1. Ways to Use PHP
- 2. Writing Our First Bit of Code
- 3. Building a Router
- 4. Building a Template Engine
- 5. Building a Validator
- 6. Building a Database Library
- 7. Building an Object-Relational Mapper Library
- 8. Building a Dependency Injection Container
- 9. Testing Our Framework
- 10. Config, Cache, Sessions, Filesystems
- 11. Queues, Logging, Emails
- 12. Publishing Your Code
- Back Matter
Product information
- Title: Pro PHP 8 MVC: Model View Controller Architecture-Driven Application Development
- Author(s):
- Release date: May 2021
- Publisher(s): Apress
- ISBN: 9781484269572
You might also like
book
Beginning Java MVC 1.0: Model View Controller Development to Build Web, Cloud, and Microservices Applications
Get started with using the new Java MVC 1.0 framework for model, view, and controller development …
book
PHP 7: Real World Application Development
Use new features of PHP 7 to solve practical, real-world problems faced by PHP developers like …
book
Learn PHP 7: Object-Oriented Modular Programming using HTML5, CSS3, JavaScript, XML, JSON, and MySQL
This new book on PHP 7 introduces writing solid, secure, object-oriented code in the new PHP …
book
PHP 8 Revealed: Use Attributes, the JIT Compiler, Union Types, and More for Web Development
Discover the new and updated features of PHP 8, such as the JIT compiler, union types, …