2017 © Pedro Peláez
 

yii2-extension yii2-arrayquery-component

Yii2 component that allows for searching/filtering the elements of an array.

image

2amigos/yii2-arrayquery-component

Yii2 component that allows for searching/filtering the elements of an array.

  • Wednesday, July 5, 2017
  • by tonydspaniard
  • Repository
  • 12 Watchers
  • 17 Stars
  • 28,699 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 7 Versions
  • 13 % Grown

The README.md

ArrayQuery Component for Yii2

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Allows searching/filtering of an array. This component is very useful when displaying array data in GridViews with an ArrayDataProvider., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require "2amigos/yii2-arrayquery-component" "*"

or add, (*5)

"2amigos/yii2-arrayquery-component" : "*"

to the require section of your application's composer.json file., (*6)

Usage

\\ $models is the array elements to used with ArrayDataProvider

$query = new ArrayQuery($models);

$models = $query
    ->addCondition('name', '~2amigos')
    ->addCondition('name', 'cebe/yii2-gravatar', 'or')
    ->find();

$dataProvider = new ArrayDataProvider([
    'allModels' => $models,
    'pagination' => [
        'pageSize' => 50,
    ],
    'sort' => [
        'attributes' => [], // to be specified
    ],
]);

Testing

bash $ phpunit, (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The BSD License (BSD). Please see License File for more information., (*9)

2amigOS!, (*10)

Custom Software | Web & Mobile Software Development www.2amigos.us, (*11)

The Versions

05/07 2017

dev-master

9999999-dev http://yiiwheels.com/extension/arrayquery-component

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

component extension yii2 2amigos yii arrayquery yii 2

05/07 2017

1.0.3

1.0.3.0 http://yiiwheels.com/extension/arrayquery-component

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

component extension yii2 2amigos yii arrayquery yii 2

16/03 2015

1.0.2

1.0.2.0 http://yiiwheels.com/extension/arrayquery-component

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

component extension yii2 2amigos yii arrayquery yii 2

04/03 2015

1.0.1

1.0.1.0 http://yiiwheels.com/extension/array-query-component

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

component extension yii2 yii arrayquery yii 2 dosamigos

04/03 2015

1.0.0

1.0.0.0 http://yiiwheels.com/extension/array-query-component

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

component extension yii2 yii arrayquery yii 2 dosamigos

24/02 2014

0.1.1

0.1.1.0

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

component extension yii arrayquery arrays

24/02 2014

0.1.0

0.1.0.0

Yii2 component that allows for searching/filtering the elements of an array.

  Sources   Download

BSD-3-Clause

The Requires

 

component extension yii arrayquery arrays