Contributte Model-specification

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

# Disclaimer

⚠️ This project is no longer being maintained. Please use contributte/utils (opens new window).
Composer minetro/model-specification (opens new window)
Version
PHP
License

# Usage

use Minetro\Model\Specification\Criteria\Criteria;
use Minetro\Model\Specification\Pagination\Paginator;
use Minetro\Model\Specification\Sorter\Sorter;
use Minetro\Model\Specification\Specification;

$spec = new Specification();

$spec->setCriteria(Criteria::factory(['foo' => 'bar']));
$spec->setSorter(Sorter::factory(['foo' => 'ASC']));
$spec->setPaginator(Paginator::factory(15));
1
2
3
4
5
6
7
8
9
10
$spec = Specification::factory(
    Criteria::factory(['foo' => 'bar']),
    Sorter::factory(['foo' => 'ASC']),
    Paginator::factory(15)
);
1
2
3
4
5
$this->facade->match($spec);
1

# Development

This package was maintain by these authors.


Consider to support (opens new window) contributte development team. Also thank you for being used this package.