libelulibelu / yii2-common-rest
Common rest utilities
Package info
github.com/libelulibelu/yii2-common-rest
Type:yii2-extension
pkg:composer/libelulibelu/yii2-common-rest
Requires
- php: >=8.2
- libelulibelu/yii2-common-helpers: ^1.0
- libelulibelu/yii2-error-handler: ^1.0
- yiisoft/yii2: ~2.0.54
Requires (Dev)
- phpunit/phpunit: ^11.5
This package is auto-updated.
Last update: 2026-06-21 21:11:45 UTC
README
Common rest utilities
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist libelulibelu/yii2-common-rest
or add
"libelulibelu/yii2-common-rest": "^1.0.0"
to the require section of your composer.json file.
Migration
Si se quiere migrar de la version taguz91/yii2-common-rest a la nueva version libelulibelu/yii2-common-rest se debe seguir los siguientes pasos:
-
Seguir la guia de migracion para yii2-common-helpers.
-
Seguir la guia de migracion para yii2-error-handler.
-
Eliminar la version actual
composer remove taguz91/yii2-common-rest
- Instalar la nueva version
composer require libelulibelu/yii2-common-rest
-
Se debe cambiar el namespace
taguz91\CommonRestaLibelula\CommonResten todo el proyecto. -
Probamos que todo funcione de forma correcta.
Tests
composer test
Git hooks
A pre-commit hook runs the test suite before every commit so broken code can't be committed.
It is enabled automatically after composer install (via the post-install-cmd script). To
enable it manually run:
git config core.hooksPath .githooks
Bypass it for a single commit with git commit --no-verify.
Usage
Once the extension is installed, simply use it in your code by: