Skip to content

Brezgalov/yii2-arrayable-api-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Как пользоваться

Установка через 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'],
],

About

arrays passed to api in string format with separator

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages