You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alexander Makarov
5870a74672
|
10 years ago | |
---|---|---|
.. | ||
apidoc | 10 years ago | |
authclient | 10 years ago | |
bootstrap | 10 years ago | |
codeception | 10 years ago | |
composer | 10 years ago | |
debug | 10 years ago | |
elasticsearch | 10 years ago | |
faker | 10 years ago | |
gii | 10 years ago | |
imagine | 10 years ago | |
jui | 10 years ago | |
mongodb | 10 years ago | |
redis | 10 years ago | |
smarty | 10 years ago | |
sphinx | 10 years ago | |
swiftmailer | 10 years ago | |
twig | 10 years ago | |
README.md | 10 years ago |
README.md
This folder contains official Yii 2 extensions.
To add a new extension named xyz
(must be in lower case), take the following steps:
- create a folder named
xyz
underyii
and put all relevant source code there; - create the following accessory files (please refer to any existing extension):
composer.json
README.md
CHANGELOG.md
LICENSE.md
- ask Qiang to create a subsplit for
xyz
and a composer package namedyii2-xyz
; - If an extension depends on external bower/npm packages:
- in the
composer.json
file of the extension, list the dependencies in the format of'bower-asset/PackageName': '1.1'
; - create an asset bundle class to list the needed js/css files from the package. The
sourcePath
property of the bundle should point to the distribution path of the package, such as@bower/PackageName
, or@bower/PackageName/dist
.
- in the
- modify
/composer.json
and addyiisoft/yii2-xyz
to thereplace
section. Also add any bower/npm dependencies to therequire
section.