Minimum price
Suggested price


Create your own MVC framework with PHP

About the Book

On our way to becoming successful developers, we will come across different tools to get the job done. What we learn today will not necessarily be relevant in a couple of years (maybe less). Such is the nature of the beast.

There are very good reasons to create your own MVC framework:

  1. If we go straight to learning a framework, we can end up seeing any problem only depending on the framework used or preferred.
  2. A framework has a lot of "magic" behind. We use what the framework offers, ignoring how things really work.
  3. We should concentrate first on learning the language, that'll make us betters developers.

So, creating our own PHP framework will not only provide us with a functional and powerfill skeleton to develop robust applications; it will also serve as a learning path, understanding complex topics so in the future, any professional framework you are required to use will make sense.

What you will learn:

  • How to structure applications so your code is robust and manteinable.
  • Design patterns such as Front Controller and MVC.
  • Advanced topics sucha us sessions, dependency injection, routing, class autoloading, etc.
  • You will a develop a complete application using the newly created framework.

It won't be short, but at the end of the road you will have the skills and knwoledge to advance your carreer.

About the Author

Victor Hugo Garcia
Victor Hugo Garcia

More than ten years as a fullstack developer, using different frameworks such as Laravel, Yii, Zend, Cake, Angular, React and Vue. Master's Degree in Computer Science.

He loves teaching, reading and writing technical and fantasy books.

Table of Contents

    • Chapter 01: Why creating an MVC Framework
      • Introducion
      • Reasons to create your own MVC framework
      • Who is this book for and how to read it?
      • Installations needed
      • Errors
      • Contact information
      • Summary
    • Chapter 02: Introduction to PHP
      • Introduction
      • Development environment
      • Syntax
      • Comments
      • Variables
      • Types
      • Converting types
      • Constants
      • Operators
      • Control Structures
      • Functions
      • Arrays
      • Forms
      • Databases
      • Summary
    • Chapter 03: Object oriented programming
      • Classes and Objects
      • $this
      • Access modifiers
      • Getters and setters
      • Magic methods
      • Building a fileuploader
      • Inheritance
      • Interfaces
      • Namespaces
      • Autoloading of classes
    • Chapter 04: Basic structure
      • Starting to spin the wheel
      • Structure
    • Chapter 05: Database connection
    • Chapter 06: Model, View, Controller
      • Summary
    • Chapter 07: First application
      • The Client Model
      • The ClientController
      • Adding a main layout
      • DataTable widget
      • Summary
    • Chapter 08: Authentication
      • Introduction
      • Users table
      • Generating a unique session id
      • User model
      • UserController: registering a new user
      • Register view
      • UserController: login in
      • Summary
    • Chapter 09: Advanced topics
      • Introduction
      • Dependency injection
      • PSR-4 Autoloading
      • Summary
    • Chapter 10: Clinic Management App Part I
      • Introduction
      • Project folder
      • Config
      • Visual aspect
      • Main layout
      • Logout button
      • Summary
    • Chapter 11: Clinic Management App Part II, Database
      • Introduction
      • Data Structure
      • Employee Model
      • Patient Model
      • PatientController
      • Summary
    • Chapter 12: Clinic Management App Part III, Medical Records
      • Introduction
      • Specialities table
      • Model’s Relations
      • One to one relation
      • Patient Medical History
      • Summary
    • Chapter 13: Patients Appointments
      • Introduction
      • Availability table
      • Appointment model
      • Employee appointments relationship
      • Working hours for professionals
      • Showing the hours already registered in the edit form
      • Generating doctors available appointments
      • Summary

The Leanpub 60-day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $12 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub