Various Yii 3.0 related documentation
Yii3 team divided the framework into several packages that conform to the following agreements.
For all packages, the GitHub repository name exactly matches the Packagist package name.
For a full list of packages and their building status, see status page at yiiframework.com.
yiisoft/yii-something
or more specific: yii-type-something
e.g.:
yii-module-users
, yii-module-pages
yii-theme-adminlte
, yii-theme-hyde
yii-widget-datepicker
yiisoft/something
without yii-prefixThe following applies to both Yii-specific packages and general purpose packages:
config
directory with Yii-specific defaults.composer.json
.require
section of composer.json
that are used in config
only.vendor/package-name
:return [
'vendor/package-name' => [
'param1' => 1,
'param2' => 2,
],
];
All packages follow SemVer versioning:
x.*.*
- incompatible API changes.*.x.*
- add functionality (backwards-compatible).*.*.x
- bug fixes (backwards-compatible).The first stable version should be 1.0.0.
Each package version number doesn’t depend on any other package version or framework name/version, only on its own public contract. The framework as a whole has the “Yii3” name.
It’s alright to use packages with different major versions together, as long as they’re compatible.
The support of PHP versions supported for a package depends on PHP versions life cycle.
A logical OR operator in version ranges MUST use double pipe (||
). For example: "yiisoft/arrays": "^1.0 || ^2.0"
.