pozitronik/yii2-helpers

Some useful helpers for Yii2 framework

Maintainers

Package info

github.com/pozitronik/yii2-helpers

Type:yii2-extension

pkg:composer/pozitronik/yii2-helpers

Statistics

Installs: 4 998

Dependents: 9

Suggesters: 0

Stars: 1

Open Issues: 1

1.2.2 2026-06-03 10:41 UTC

README

Some useful helpers for Yii2 framework

GitHub Workflow Status

Installation

The preferred way to install this extension is through composer.

Run

php composer.phar require pozitronik/yii2-helpers "^1.0.0"

or add

"pozitronik/yii2-helpers": "^1.0.0"

to the require section of your composer.json file.

Requirements

PHP >= 8.3

Usage

Sorry, not documented yet (but you can rely to PHPDoc).

Testing

The test suite is self-contained: the only external dependency (a PostgreSQL database) is provided on demand through Docker, so no locally installed database is required.

composer install
cp tests/.env.example tests/.env   # default credentials already match docker-compose.yml
composer db:up                     # start the disposable PostgreSQL container
composer test                      # run the whole suite
composer db:down                   # stop and remove the container

You can also run a single suite, class or method directly:

vendor/bin/codecept run unit
vendor/bin/codecept run unit DateHelperTest
vendor/bin/codecept run unit DateHelperTest:testMonthPlus