Everything about PHP namespaces - OOP in PHP | Part 10

  Рет қаралды 16,126

The Codeholic

The Codeholic

Күн бұрын

In the following video, it is shown:
- What is PHP namespace
- Why they are useful.
- What problems they solve.
- How to create and use them.
Useful Links
---------------------
Namespaces Cheatsheet:
github.com/the...
Namespaces explained:
developer.hyvo...
Official Documentation:
www.php.net/ma...
Other videos on Object-Oriented PHP
------------------------------------------------------------
Introduction to OOP in PHP - • Introduction to OOP in...
Creating classes in PHP - • Creating classes, prop...
Inheritance in PHP - • Inheritance for beginn...
Interfaces - • Interface in PHP for b...
Traits - • PHP traits in depth wi...
Follow me on social media:
/ thecodeholic
/ thecodeholic
github.com/the...

Пікірлер: 34
@jere473
@jere473 4 жыл бұрын
Great tutorial! Really informative and well delivered. So many of other videos lack information and a delivered very slow, your's a perfect. Right to the point
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thank you
@petruciucur
@petruciucur 4 жыл бұрын
Excellent tutorial about namespaces. Thanks a lot !
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thank you
@rafaelmartineztomas4911
@rafaelmartineztomas4911 3 жыл бұрын
Really nice tutorial , no bullshit straight to the point , we need more youtubers of this kind
@rajamohammed1275
@rajamohammed1275 4 жыл бұрын
Glad i found this after a long search. Really an exceptional video. Now i am following The Codeholic :)
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thank you man. It means a lot for me
@jamesrosemary2932
@jamesrosemary2932 4 жыл бұрын
I learned sometjhing new today.
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Glad to read that
@pauloamossecuambe7282
@pauloamossecuambe7282 4 жыл бұрын
Awesome tutorial. Thannks, it really helped a lot
@divinealien7620
@divinealien7620 4 жыл бұрын
thank you
@user-mw1uf8tf7w
@user-mw1uf8tf7w 4 жыл бұрын
Big thanks!
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Big Welcome!
@judeleon8485
@judeleon8485 9 ай бұрын
Well explained! thanks
@BobDoe_69
@BobDoe_69 3 жыл бұрын
Thanks for this OOP series, very good. After video 9 things aren't clicking for me :( I will keep rewatching I guess
@programming8840
@programming8840 Жыл бұрын
very good but if high contrast text in tutorial, then excellent
@ImanAboheydary
@ImanAboheydary 3 жыл бұрын
Tnx, It was so great
@ashharkausar413
@ashharkausar413 3 жыл бұрын
Very good thank you!
@NedumEze
@NedumEze 2 жыл бұрын
Please, does it matter which comes first, the USE statement or the REQUIRE OR INCLUDE statement?
@vooshmoozik6185
@vooshmoozik6185 Жыл бұрын
i'm sure you've got your answer by now, but for people who'll read this in the future, by the tutorials i've seen: INCLUDE > REQUIRE>USE please someone correct me if needed
@NedumEze
@NedumEze Жыл бұрын
@@vooshmoozik6185 Better late than never. Thanks
@codeflows
@codeflows 4 жыл бұрын
Thanks for your tutorial. Can you tell me Which editor are you using?
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Welcome. I use PHPStorm
@giorgitadiashvili1625
@giorgitadiashvili1625 3 жыл бұрын
აპოლო 11
@nour-eddineoumakhlouf5296
@nour-eddineoumakhlouf5296 3 жыл бұрын
So, it's like declaring the name of a database in SQL when we have two tables with the same name but in separate databases?
@TheCodeholic
@TheCodeholic 3 жыл бұрын
Good example. Yes
@menjil
@menjil 4 жыл бұрын
how about if the CLASS is under => /class/person Warning: require_once(class/Person\PersonName.class.php): failed to open stream: No such file or directory in /Users/menjilx/Development/playground/includes/autoloader.php on line 13
@TheCodeholic
@TheCodeholic 4 жыл бұрын
You are not using correct path to the file. Use "require_once(__DIR__.'/class/Person/PersonName.php')" Pay attention to the uppercase P
@menjil
@menjil 4 жыл бұрын
@@TheCodeholic Thank you so much! Finally, I figured it out :) My "auloader.php" file. ------ spl_autoload_register('myAutoLoader'); function myAutoLoader($classname){ include 'classes/' . str_replace('\\', "/", $classname) . '.class.php'; }
@pasizdobrekuce
@pasizdobrekuce 4 жыл бұрын
Remove "The" ... just "Codeholic" :))) Tnx BTW. Much appreciated.
@TheCodeholic
@TheCodeholic 4 жыл бұрын
No way...
@ianpaul0520
@ianpaul0520 3 жыл бұрын
it's like import on javascript, am i right?
@pater429
@pater429 4 жыл бұрын
I think magic functions are not what they teach us they are, i also have questions about the Switch/Case functions. but it is nice to have around just keep this in in mind while developing, dont be a Google. nvd.nist.gov/vuln/detail/CVE-2018-19595
@lotfialmabree1107
@lotfialmabree1107 5 жыл бұрын
Peace be upon you Guys, there's an agent who asked me. The user or customer has a username and password The first time the manager activates the user account, the activation is for 24 hours only after 24 hours he can not enter How do I do that? Help him, please.
Autoloading in PHP without and with Composer - OOP in PHP | Part 11
16:01
PHP traits in depth with examples - OOP in PHP | Part 9
30:53
The Codeholic
Рет қаралды 13 М.
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 13 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 99 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 62 МЛН
Or is Harriet Quinn good? #cosplay#joker #Harriet Quinn
00:20
佐助与鸣人
Рет қаралды 58 МЛН
PHP For Beginners, Ep 31 - Namespacing: What, Why, How
12:09
Laracasts
Рет қаралды 13 М.
Understanding Ownership in Rust
25:30
Let's Get Rusty
Рет қаралды 256 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 270 М.
Domain Driven Design: What You Need To Know
8:42
Alex Hyett
Рет қаралды 123 М.
PHP Namespace Tutorial - Full PHP 8 Tutorial
20:15
Program With Gio
Рет қаралды 57 М.
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
The Tools I Use to Build Products in Laravel
19:00
Josh Cirre
Рет қаралды 29 М.
PHP Autoload and Namespaces [Extended Guide] | [2020]
29:30
TechnoTrax
Рет қаралды 14 М.
Creating classes, properties, methods - OOP in PHP | Part 1
11:03
The Codeholic
Рет қаралды 21 М.
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 13 МЛН