Files
yii2/extensions
Carsten Brandt 8176a392bb Changed version constratints to be semantic versioning again
- in composer the `~` operator is just a shortcut for `~1.0` = `>=1.0.0,<2.0.0`
  it does not prevent dev versions to be installed but neither does `1.*`
- dev versions are constrolled via `minimum-stability` setting and the
  `@dev`, `@beta`, `@stable`,... settings.
- setting bower packages that ship compiled files only with the stable
  release to use `@stable` in composer.json of the applictaions. This
  setting can be removed when we remove the `minimum-stability=dev`
  setting after GA.
2014-09-22 13:15:43 +02:00
..
2014-09-12 06:42:54 -04:00
2014-09-11 02:09:21 +02:00
2014-09-05 20:26:02 -04:00
2014-07-30 00:40:46 +02:00
2014-09-07 15:47:21 +04:00

This folder contains official Yii 2 extensions.

To add a new extension named xyz (must be in lower case), take the following steps:

  1. create a folder named xyz under yii and put all relevant source code there;
  2. create the following accessory files (please refer to any existing extension):
    • composer.json
    • README.md
    • CHANGELOG.md
    • LICENSE.md
  3. ask Qiang to create a subsplit for xyz and a composer package named yii2-xyz;
  4. 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.
  5. modify /composer.json and add yiisoft/yii2-xyz to the replace section. Also add any bower/npm dependencies to the require section.