A Yii2 extension template to create your own Yii2 extensions
PHPUnit, PHPStan, Infection, ECS, and GitHub Actions ready out of the box
composer require github_username/github_repository-name "yiisoft/yii2:^22.0@dev"Describe how to use your extension in a basic way.
use yii\template\Example;
$example = new Example();
$legacy = $example->getExample(true);The guides and the API reference generated
from the PHPDoc in src/ are published at https://yii2-framework.github.io/docs/extensions/template/.
AI agents: read https://yii2-framework.github.io/docs/llms.txt, the index of the documentation site, and fetch the
Markdown version of a page by appending index.md to its URL, for example
https://yii2-framework.github.io/docs/extensions/template/installation/index.md. For the Yii conventions this
package builds on, install the
yii2-framework skill
through the shared Composer setup.