Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
55f62bfe
Commit
55f62bfe
authored
Dec 27, 2013
by
suralc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified extension guidlines
parent
4148912b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
extensions.md
docs/guide/extensions.md
+5
-4
No files found.
docs/guide/extensions.md
View file @
55f62bfe
...
...
@@ -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*
.
\ No newline at end of file
-
Extension SHOULD be testable with
*PHPUnit*
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment