Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 650 Bytes

004-namespaces.md

File metadata and controls

21 lines (14 loc) · 650 Bytes

004 - Namespaces

Package namespace rules are the following:

  1. PascalCase is used for namespace parts.
  2. Root vendor namespace is Yiisoft.
  3. Package name parts are used in namespace.

Some examples:

Package Namespace
yiisoft/yii-web Yiisoft\Yii\Web
yiisoft/di Yiisoft\Di
yiisoft/db-mysql Yiisoft\Db\Mysql
yiisoft/friendly-exception Yiisoft\FriendlyException

References