brezgalov / yii2-arrayable-api-fields
arrays passed to api in string format with separator
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: 2025-03-07 00:06:25 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'],
],