
Build your own advanced PHP MVC framework inspired by Laravel, wiring routes to auth controller methods, organizing controllers, models, traits and optional middleware, and testing with Postman.
Install PHP and MySQL on Windows using Zamp, with steps for other OS, set up Postman, and create a PHP MVC framework collection to test an API on port 5000.
Explore the folder structure of a PHP MVC framework, organizing app into controllers, helpers, lib, middleware, models, public, and traits, with key files like auth controller.php and routes.php.
Create a bootstrap file in PHP that uses SPL autoload register to automatically load classes from the app directory by mapping namespaces (models, user) and requiring class files.
Build a config class in a PHP MVC framework to load env-style settings, parsing key-value pairs for db host, name, user, pass, and a secret key for the kernel.
Create a simple dependency injection container in PHP, storing services in a static array with get and set methods. Instantiate by string or pass objects for later dependency injection usage.
Create a database class with a static connect method that returns a PDO instance, sourcing user, password, host, and database name from config.
Develop and run a kernel for a PHP mvc framework by loading config, connecting the database, starting sessions, and preparing the router for next steps.
Learn to build a PHP MVC router that handles get and post routes, supports middleware, parses routes with parameters, and invokes controllers via a container.
Learn how to parse incoming requests into query and body data, including JSON payloads, and respond with JSON using a PHP MVC framework.
Implement a collection class in a PHP MVC framework with a protected items array, a constructor, map and filter methods, and JSON serialize.
Create an eloquent-like PHP model and a versatile query builder to manage attributes, JSON serialization, relations, and CRUD operations with pagination.
Fix the model class by adding a collection to array function that returns items and updating the query builder to convert results to arrays, enabling fetching a user with roles.
Explore how authenticated middleware validates authorization headers with a helper token, logs in users, and protects API routes by returning 401 unauthorized when token checks fail.
Build a JWT codec in a PHP MVC framework to base64 url encode/decode header, payload, and signature, implement authentication, register and login flows, and issue API tokens.
Thank you for enrolling and building this professional PHP MVC framework. Use your finished project to power your own apps or showcase your coding skills in your portfolio.
Hello guys,
This is Mikolaj Marciniak again. I would like to bid you welcome to my new course on how to create an advanced, your very own PHP MVC Framework, that resembles Laravel in some ways. This is the ONLY course on Udemy that takes mostly used Laravel's functionalities and makes it its own! Learn from the best!
WARNING!
This is an intermediate course, and it assumes basic PHP knowledge, along with basic MySQL knowledge. Taking this course if you are completely new to programming is NOT required.
WARNING!
You will be creating the following:
- Your very own advanced router, that will be able to handle routes such as: /api/todos/{id}/mark-complete!
- Your very own Database Query Builder and Model classes, that look like Laravel's Eloquent when using them!
- JWT Authentication with a trait, own library and middleware! Code and authenticate like a pro!
- Request and Response classes
- Your very own .env parser, so you can easily have your own .env variables!
- Return a model or collection of models just like laravel, no need to encode into JSON!
So...
If you are ready to embark on a new journey and advance your PHP and MySQL skills, this is the course for you!