pozitronik / yii2-helpers
Some useful helpers for Yii2 framework
Package info
github.com/pozitronik/yii2-helpers
Type:yii2-extension
pkg:composer/pozitronik/yii2-helpers
1.2.2
2026-06-03 10:41 UTC
Requires
- php: >=8.3
- ext-zip: *
- yiisoft/yii2: ~2.0.0
Requires (Dev)
- codeception/codeception: ^5.0.0
- codeception/module-asserts: ^3.0.0
- codeception/module-cli: dev-master
- codeception/module-db: ^3.0.0
- codeception/module-filesystem: ^3.0.0
- codeception/module-phpbrowser: ^3.0.0
- codeception/module-rest: ^3.0.0
- codeception/module-yii2: ^v2.0.0
- phpunit/phpunit: ^12.0.0
- vlucas/phpdotenv: ^5.4.1
- yiisoft/yii2-bootstrap4: ~2.0.10
README
Some useful helpers for Yii2 framework
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