First-Level Namespacing

A common approach is to use a first-level namespace that identifies your company. This will help in avoiding conflicts with third-party libraries. If you're using PSR-0, you'll have a real folder for the namespace; if you're using PSR-4, you don't need it. We'll go deeper into this shortly. But first, let's take a look at the PHP namespacing conventions.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset