Namespaces organize PHP code and prevent naming collisions between classes, functions, and constants — essential as applications grow and use third-party packages. They work like directories for class names, and integrate with Composer autoloading (PSR-4).
The problem namespaces solve
Without namespaces, two classes named `User` (yours and a library's) would COLLIDE
("cannot redeclare class"). Namespaces give each a unique fully-qualified name.
