minetro / model-specification
Controls and extensions for Nette/Forms
Fund package maintenance!
f3l1x
contributte.org/partners.html
Requires
- php: >=5.6.0
- nette/utils: ~2.4.0
Requires (Dev)
- nette/tester: ~1.7.0
This package is not auto-updated.
Last update: 2022-02-01 12:59:51 UTC
README
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
⚠️ | This project is no longer being maintained. Please use contributte/utils. |
---|
Composer | minetro/model-specification |
---|---|
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));
$spec = Specification::factory( Criteria::factory(['foo' => 'bar']), Sorter::factory(['foo' => 'ASC']), Paginator::factory(15) );
$this->facade->match($spec);
Development
This package was maintain by these authors.
Consider to support contributte development team. Also thank you for being used this package.