Facade Design Pattern in PHP

  Рет қаралды 3,858

Majid Karimizadeh

Majid Karimizadeh

Күн бұрын

Facade allows you to hide the complexity of the subsystem behinds the simple interface. For now, we are going to implement a hash interface with different hashing algorithms using PHP.
GitHub Repo:
github.com/maj...
Follow me on LinkedIn:
/ majid-karimizadeh

Пікірлер: 16
@behnambahrami7175
@behnambahrami7175 2 жыл бұрын
Thank you Mr Karimizadeh, I hope to see you someday.
@dAvid3_f
@dAvid3_f 3 жыл бұрын
The best tutorial about Facade PHP pattern so far, thumbs up !!! 👍
@codeblood87
@codeblood87 2 жыл бұрын
Lovely 🌹
@MrWilde
@MrWilde 2 жыл бұрын
Another great video Majid, thankyou. If possible, 1080p would make these much easier to watch.
@Quynn-Oneal
@Quynn-Oneal 3 жыл бұрын
Great job Majid. motesekkeram
@JacklapottTv
@JacklapottTv Жыл бұрын
Correct me if I'm wrong but for me this is an implementation of a factory pattern not facade, facade tends to hide complexity of APIs not building concrete classes instances
@coran7122
@coran7122 5 ай бұрын
I think it's a Strategy implementation.
@NoahNobody
@NoahNobody 3 жыл бұрын
Excellent tutorial. Where did you learn about PHP Facades?
@ApplicableProgramming
@ApplicableProgramming 3 жыл бұрын
Nice example Majid
@majidkarimizadeh234
@majidkarimizadeh234 3 жыл бұрын
Thanks
@SepehrRadfar
@SepehrRadfar 3 жыл бұрын
thnks for this tutorial
@dAvid3_f
@dAvid3_f 3 жыл бұрын
Hello, once again, I do really enjoy this tutorial. Simple and well explained :) I have a question for you ... Let's say I'd like to refactor one of my PHP class which does use PHP PDO to connect to both SQLite, MySQL and PostgreSQL. I would also potentially need to be able to extend to other DBMS like Oracle or anyone else in the future. What would be the best design pattern to use ? Bridge or Facade ? Thanks for your feedback
@majidkarimizadeh234
@majidkarimizadeh234 3 жыл бұрын
Adapter design pattern would be good for these kinds of requirements. Also, you can watch a light tutorial about adapter in the following link. kzbin.info/www/bejne/iKHdeqiGhKtnia8
@dAvid3_f
@dAvid3_f 3 жыл бұрын
@@majidkarimizadeh234 thanks a lot, I’ll have a look
@mevkok
@mevkok 2 жыл бұрын
Damn, nice tutorial but there are some clues that I think prove you didn't do this tutorial: 1. Your voice-over is out of sync with the video 2. Somewhere around 8:50 you actually unmute the video and the real person is heard talking... It's pretty nice tutorial but because of that stunt you get thumbs down.
@majidkarimizadeh234
@majidkarimizadeh234 2 жыл бұрын
Thanks for your comment. In next tutorials, I'll consider them.
Data Mapper Design Pattern in PHP
13:40
Majid Karimizadeh
Рет қаралды 3 М.
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 15 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
Strategy Design Pattern in Laravel and PHP
15:43
EscoTech
Рет қаралды 7 М.
Design Patterns: Factories
25:26
Microsoft Visual Studio
Рет қаралды 55 М.
When to use Traits, Interfaces, and Abstract Classes in PHP
15:08
Andrew Schmelyun
Рет қаралды 23 М.
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
Facade Pattern - Design Patterns (ep 9)
16:19
Christopher Okhravi
Рет қаралды 183 М.
Bridge Design Pattern in PHP
14:42
Majid Karimizadeh
Рет қаралды 1,2 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 309 М.
The Singleton Pattern - Design Patterns in PHP
8:10
ollieread
Рет қаралды 6 М.
PHP OOP Design Patterns | Factory Method
12:15
Gary Clarke
Рет қаралды 7 М.