mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
Merge pull request #1661 from suralc/patch-2
Modified extension guidlines
This commit is contained in:
@@ -17,9 +17,11 @@ using the following syntax: e.g. `[[name()]]`, `[[name\space\MyClass::name()]]`.
|
||||
### Namespace and package names
|
||||
|
||||
- Extension MUST use the type `yii2-extension` in `composer.json` file.
|
||||
- Extension MUST NOT use `yii` or `yii2` in the composer package name or in the namespaces used in the package.
|
||||
- Extension MUST NOT use `yiisoft` in the composer package name, the composer vendor name or in the namespaces used in the package.
|
||||
- Additionally extensions MUST NOT use `yii` or `yii2` in their composer vendor name.
|
||||
- Extension MUST NOT have a root-namespace named `\yii`, `\yii2` or `\yiisoft`.
|
||||
- Extension SHOULD use namespaces in this format `vendor-name\package` (all lowercase).
|
||||
- Extension MAY use a `yii2-` prefix in the composer vendor name (URL).
|
||||
- Extension MAY use `yii2-` in the composer package name (e.g `vendor\yii2-api-adapter` or `vendor\my-yii2-package` (URL).
|
||||
- Extension MAY use a `yii2-` prefix in the repository name (URL).
|
||||
|
||||
### Dependencies
|
||||
@@ -75,4 +77,4 @@ Authorization
|
||||
Testing your extension
|
||||
----------------------
|
||||
|
||||
- Extension SHOULD be testable with *PHPUnit*.
|
||||
- Extension SHOULD be testable with *PHPUnit*.
|
||||
|
||||
Reference in New Issue
Block a user