Namespaces in PHP

OK, let me be clear. I don’t think that namespaces will add a lot in terms of functionality, usefulness while programming itself. However, apart from being able to develop your applications using useful functions, you also need to be able to manage your code. And this is where namespaces come in.

Using namespaces, one will be able to easily group (or “package”) together related pieces of code. It will also ensure that when you’re using different pieces of different libraries you did not develop yourself, that they won’t clash anymore due to similar namings.

So, even though for day to day code typing it won’t change a lot, it will definitely change a lot for technical project and codebase management. Important enough for me and anyone else doing professional PHP development. 


Leave a Reply

Your email address will not be published. Required fields are marked *