docs

Various Yii 3.0 related documentation

View the Project on GitHub yiisoft/docs

000 - Packages

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.

Yii-specific packages (framework and extensions)

General purpose packages (libraries)

Configs and defaults

The following applies to both Yii-specific packages and general purpose packages:

return [
    'vendor/package-name' => [
        'param1' => 1,
        'param2' => 2,
    ],
];

Versions

All packages follow SemVer versioning:

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.

PHP versions support

The support of PHP versions supported for a package depends on PHP versions life cycle.

composer.json

A logical OR operator in version ranges MUST use double pipe (||). For example: "yiisoft/arrays": "^1.0 || ^2.0".