libelulibelu/yii2-common-rest
Composer 安装命令:
composer require libelulibelu/yii2-common-rest
包简介
Common rest utilities
关键字:
README 文档
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:
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-06-21