Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiicod/yii2-datafilter
https://github.com/yiicod/yii2-datafilter
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yiicod/yii2-datafilter
- Owner: yiicod
- Created: 2017-08-25T21:46:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T20:12:25.000Z (over 6 years ago)
- Last Synced: 2024-04-19T09:20:36.850Z (9 months ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii Data filter extension
=========================[![Latest Stable Version](https://poser.pugx.org/yiicod/yii2-datafilter/v/stable)](https://packagist.org/packages/yiicod/yii2-datafilter) [![Total Downloads](https://poser.pugx.org/yiicod/yii2-datafilter/downloads)](https://packagist.org/packages/yiicod/yii2-datafilter) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yiicod/yii2-datafilter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yiicod/yii2-datafilter/?branch=master)[![Code Climate](https://codeclimate.com/github/yiicod/yii2-datafilter/badges/gpa.svg)](https://codeclimate.com/github/yiicod/yii2-datafilter)
Provides the functionality to create data filters logic.
Using handlers you can create chains of filters.#### Usage
```php
$filteredData = DataFilter::filter(new MyAwesomeFilter($notFilteredData, $additionalParamsForFilteringData));
```Where MyAwesomeFilter extends DataFilterAbstract and has list of handlers, which filters data in course.
Each handler should implements DataHandlerInterface