Skip to content
Public template

About

Extension template for Yii2 22.0: PHPUnit, PHPStan, Infection, ECS, GitHub Actions CI/CD, and Codecov out of the box.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Yii Framework

Template


PHPUnit Mutation Testing PHPStan Security

A Yii2 extension template to create your own Yii2 extensions
PHPUnit, PHPStan, Infection, ECS, and GitHub Actions ready out of the box

Features

Feature Overview

Quick start

Installation

composer require github_username/github_repository-name "yiisoft/yii2:^22.0@dev"

Basic usage

Describe how to use your extension in a basic way.

use yii\template\Example;

$example = new Example();

$legacy = $example->getExample(true);

Documentation

The guides and the API reference generated from the PHPDoc in src/ are published at https://yii2-framework.github.io/docs/extensions/template/.

AI assistance

AI agents: read the documentation index and fetch the Markdown version of a page by appending index.md to its URL. The AI agents guide covers skill installation, client setup and verification.

The hosted documentation covers Yii 22.0. If it does not match the installed revision or is unavailable, use the repository guides, the source PHPDoc and the changelog.

Package information

PHP Yii 22.0.x

Project status

Codecov PHPStan Level Max Quality StyleCI

Our social networks

Follow on X Follow on Facebook Join our Subreddit Join on Telegram

License

License

About

Extension template for Yii2 22.0: PHPUnit, PHPStan, Infection, ECS, GitHub Actions CI/CD, and Codecov out of the box.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages