Build a Laravel-Style PHP Templating Engine from Scratch! | Quick programming Tutorial

preview_player
Показать описание
In this tutorial, we build a full Laravel-style PHP templating engine from scratch — no frameworks, no libraries, just pure PHP! You'll learn how to implement powerful Blade-style features like @extends, @section, @yield, and @include, and even create a custom error handler that gives you meaningful debug messages just like Laravel.

🔧 What You’ll Learn:
How templating engines work behind the scenes
Building reusable layouts with @extends
Injecting dynamic content with @section and @yield
Creating partial views using @include
Debugging templates with friendly error output

Whether you're building your own CMS, learning to master PHP internals, or just love building tools, this video will teach you the fundamentals of creating a clean and powerful templating engine.

more tutorials:

HTML Beginner Course:

make a social website from scratch:

all crash courses:

code a live chat app in PHP and JavaScript:

make an eCommerce website from template:

convert an HTML template to PHP website:

simple signup and login system & security:

crop images with PHP:

PHP Object Oriented Programming basics:

Chart or graph using SVG:

Responsive web design:

clean pretty URLs:

support me on patreon:

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

The output buffer explanation was super helpful. 👌 Thanks for another amazing tutorial!

tiago.sartor
Автор

I didn't think I would ever use something like this, but the best 1.5 hours I've spent! I hope to use this in conjunction with the YT clone series. Best channel on the tube! Thank you, sir!

bwaikel
Автор

So good to have you back making videos again! I am using on my own mvc projects a lot of things i learned from you! You are a top teacher!!! Thank you so much for all the great content you share with us! Best regards from Portugal 💪

DRFreelancer
Автор

This is the kind of content worth watching. Thank you very much

joel-rgxm
Автор

This is so very good. I've been working on a Laravel style framework which i use a few symfony packages and I've been stuck in the templating engine because it could not compile children. This video is going to help me a lot

Thanks 👍🏻

wego-k
Автор

This is great. Very interesting to learn. Are we going to add this to the YouTube clone? 🙂

itaichapwanya
Автор

I:m always following your lessons, learning php. Your oop style lessons are very useful. Thank you very much for your lessons as usual, i'm proud to be having such lecturer and lectures.

chinmobile
Автор

Nice please add laravel style eloquent

rajabhishek
Автор

Please consider bringing some javascript related content as well. We don’t have instructors like you here on youtube. Only you create some advanced and cool content.

bimalpariyar
Автор

This is how sngine script was made off tpl, now i can modif the script although its still tough to work with, but at least you let me understand some steps

codedlabdev
Автор

Interesting, not sure what the reason is for all the extra "regex" and the preg_replace() function, "doing all that stuff." If that makes any sense.

MrBrady
Автор

Cant we make this as server side templating ?? Wish it could

PratikBhujel-zn
join shbcf.ru