Dive into PHP attributes as we use them to implement validation rules in a DTO, showcasing a practical and efficient coding approach.
Check out THE FULL COURSE and get the code examples here:
https://www.garyclarke.tech/p/learn-o...
🆓 Join garyclarke.tech for course DISCOUNTS and a FREE Docker + PHP course (worth $49)
https://www.garyclarke.tech
👇 Follow me on Social Media:
Twitter: / garyclarketech
Linkedin: / garyclarketech
💕Show support:
https://www.paypal.com/donate/?hosted...
0:00 Introduction
3:50 Data Transfer Objects
10:05 Readonly Properties and Classes
14:18 Creating Custom Attributes
15:57 Applying Attributes
17:40 Validation Mechanism
26:08 Attributes and Interfaces
34:13 Instantiating Attributes
40:18 Custom Validator Classes
45:40 Get the full course