Attributes feature that was introduced in PHP 8.0 may sound complicated but it's pretty simple when you put it into practice. In this video, we explore the attributes feature & refactor our simple router to use attributes.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: / programwithgio
THANK YOU!
🛠️ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - https://m.do.co/c/38b935ad74e5
Domains on Namecheap - https://namecheap.pxf.io/rnRjdQ
Envato Elements - https://1.envato.market/c/2937311/298...
Adobe Photoshop & Premiere - https://clk.tradedoubler.com/click?p=...
COURSE PLAYLIST
• Learn PHP The Right Way - Full PHP Tu...
RESOURCES
Source repo - https://github.com/ggelashvili/learnp...
Docs - https://www.php.net/manual/en/languag...
RFC that added attributes support - https://wiki.php.net/rfc/attributes_v2
Bitwise operators lesson - • PHP Operators Part 2 - Full PHP 8 Tut...
Reflection API - • Dependency Injection Container With &...
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.