PHP MVC (Clinic Management App)
PHP MVC
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:
- If we go straight to learning a framework, we can end up seeing any problem only depending on the framework used or preferred.
- A framework has a lot of "magic" behind. We use what the framework offers, ignoring how things really work.
- 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.
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
- Introduction
- Database class
- 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
- Chapter 14: Routing
- Introduction
- Protecting our routes
- Routes configuration
- Named routes
- Summary
- Chapter 15: Role based access control
- Introduction
- Roles table
- Changing the UserController
- Finishing the views
- Checking Admin role
- Change password functionality
- Summary and last words
- Chapter 01: Why creating an MVC Framework
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.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $13 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