brezgalov / yii2-arrayable-api-fields
arrays passed to api in string format with separator
Package info
github.com/Brezgalov/yii2-arrayable-api-fields
pkg:composer/brezgalov/yii2-arrayable-api-fields
v1.0.1
2021-08-06 16:24 UTC
Requires
- php: >=5.6.0
- yiisoft/yii2: ~2.0.6
This package is auto-updated.
Last update: 2026-03-07 02:42:07 UTC
README
Установка через composer:
composer require brezgalov/yii2-arrayable-api-fields --prefer-dist
Для php8:
composer require brezgalov/yii2-arrayable-api-fields --prefer-dist --ignore-platform-reqs
Подключить в behaviours модели:
'arrayableInput' => [
'class' => ArrayableInputBehaviour::class,
'fields' => ['id', 'exclude_id'],
],