Routing, Controllers, Views - Part 1 | PHP MVC Framework from Scratch

preview_player
Показать описание

I have built an MVC framework on PHP from scratch.
In this video we will implement custom routing, Controllers, Views, Layouts.

⭐⭐Source code⭐⭐

Here are several features of the framework:
- Custom Routing
- Composer
- Controllers
- Views/Layouts
- Models
- Migrations
- Form widget classes
- Processing of request data
- Validations
- Registration/Login
- Simple Active Record
- Session Flash messages
- Middlewares
- Application events
- Framework reusable/installable core

=========================================================
------------------AUDIO GEAR I HAVE--------------------

------------------CHEAP AUDIO SETUP------------------
=========================================================

Follow me on social media:

Check my Github:
Рекомендации по теме
Комментарии
Автор

If you have the following error at 56:55
call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method cannot be called statically

You have to make some changes in Router class. During the time of making this framework PHP version was allowing calling non-static method statically, but later it was changed.
Here is fix...
At 31:07 instead of calling call_user_func($callback) directly, we need to create an instance of the controller first.
if (is_array($callback)) {
$callback[0] = new $callback[0];
}
return call_user_func($callback);

TheCodeholic
Автор

Three years later, it remains a great contribution to the community!
Thanks for all

tutanchacon
Автор

Never worked with a (MVC) framework in my life and your explaination is super clear and easy to comprehend. You have a gift to do this. Keep doing this please.

Gorbatsjov
Автор

I am a beginner so I can't judge others' code but I know clean code when I look at one. Readable, organized and it's only the first video. Fantastic work!!

stms
Автор

i think this is the best php tutorial for building MVC FRAMEWORK

mohammadaminsamadi
Автор

Just finished Part 1. I really learned quite a bit.

Some constructive feedback:
- Maybe breaking the video down into shorter parts. There were a few points where I felt the video could have ended and a new one started.
- For those not using PHPStorm, maybe clarifying when PHPStorm automagically adds something.
- Maybe a little less jumping around; can be confusing for novices.

Great job and extremely thorough explanation! Thank you!

HondoUS
Автор

Thank you, I did not even need to increase the playback speed because the narration is on point!

azatnurzhanuly
Автор

Excellent, thanks, please make lectures on Laravel framework, if you have time 👍

mrtayyabmughal
Автор

Holy macaroni, I also created my own framework which is similar to your routing approach, But this is entirely more creative and object oriented, I might as well try this and re write my code. Thanks for this, God Bless you!

Akosiyawin
Автор

Lots of thanks. Is something i have been looking for for years

dungaland
Автор

Y u didn't have more viewssss! Just discovered your channel and immediately subscribed. Please continue the hard work, you're amazing.

amirulfitri
Автор

This is crazy amazing. I never knew PHP was this cool. Thank you. Thank

lanreoreyomi
Автор

Hello,

I'm Vietnamese, I've watched your video and I see your video is very good, there's a lot of PHP stuff that I don't know yet.

LEXUANPHAT
Автор

Excellent Job! You mentioned that this framework is for educational purposes only. I was wondering what has to be done to make it suitable for production.

terrymurray
Автор

You are really a genius.
I want to give you thumbs-up as many as I can.

myghhkr
Автор

Wow!😍😍 Thank you millions for making the series! 🙏🙏

rajeshbudhathoki
Автор

I knew that accent sounded familiar, and then the surname appears! Great tutorial. Madloba!

neilacero
Автор

Very good approach with the evolution step by step ans very well explained, you did a great job congratulation and i hope that you have the courage to continue like this because it's lot of work. Thank you for sharing your knowledge with the community, i follow and and gonna share your channel !!!

sevdinkojic
Автор

The way you code is very nice and understandable. Thanks a lot

mouhamaddiop
Автор

Thank you for your hard work sir! This could definetely be a paid course. One more time, hats off to you sir, and a million thanks.

jakubgadzala