PHPackages                             minetro/model-specification - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. minetro/model-specification

Abandoned → [contributte/model](/?search=contributte%2Fmodel)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

minetro/model-specification
===========================

Controls and extensions for Nette/Forms

14.0k1PHPCI failing

Since Jun 25Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/contributte/model-specification)[ Packagist](https://packagist.org/packages/minetro/model-specification)[ RSS](/packages/minetro-model-specification/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](https://camo.githubusercontent.com/2fe8c668626430509fff7ae17bd776ddcc91ad2a1e7a28baf013be24a4ad645e/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6d6f64656c2d73706563696669636174696f6e2f3f646570726563617465643d31)](https://camo.githubusercontent.com/2fe8c668626430509fff7ae17bd776ddcc91ad2a1e7a28baf013be24a4ad645e/68747470733a2f2f686561746261646765722e76657263656c2e6170702f6769746875622f726561646d652f636f6e74726962757474652f6d6f64656c2d73706563696669636174696f6e2f3f646570726563617465643d31)

 [![](https://camo.githubusercontent.com/a8b1cd856d7d396fdebbe46947cc3507490acc267a02361e5e53bb7b820c95c3/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e)](https://bit.ly/ctteg) [![](https://camo.githubusercontent.com/86d6416fc04f8bcc3daa7bf881526b9953b9726b1164d05c157c8713e3a73418/68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77)](https://bit.ly/cttfo) [![](https://camo.githubusercontent.com/5d170ab94e6d594609561e16fe0f9e4293968fbd4dfcfafc5e11efc1415ef09c/68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534)](https://contributte.org/partners.html)

 Website 🚀 [contributte.org](https://contributte.org) | Contact 👨🏻‍💻 [f3l1x.io](https://f3l1x.io) | Twitter 🐦 [@contributte](https://twitter.com/contributte)

Disclaimer
----------

[](#disclaimer)

⚠️This project is no longer being maintained. Please use [contributte/utils](https://github.com/contributte/utils).Composer[`minetro/model-specification`](https://packagist.org/packages/minetro/model-specification)Version[![](https://camo.githubusercontent.com/ad4723ae4117948a8f0488e55858e8307ef72f587858fde467058830b995229f/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6d696e6574726f2f6d6f64656c2d73706563696669636174696f6e)](https://camo.githubusercontent.com/ad4723ae4117948a8f0488e55858e8307ef72f587858fde467058830b995229f/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6d696e6574726f2f6d6f64656c2d73706563696669636174696f6e)PHP[![](https://camo.githubusercontent.com/5a23dc5171378e2f4415d355949d8529a7c5573dada88e4492a9982fa63355d2/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6d696e6574726f2f6d6f64656c2d73706563696669636174696f6e)](https://camo.githubusercontent.com/5a23dc5171378e2f4415d355949d8529a7c5573dada88e4492a9982fa63355d2/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f6d696e6574726f2f6d6f64656c2d73706563696669636174696f6e)License[![](https://camo.githubusercontent.com/3a19c618988559088c66e05a19b82278b07c435adbe3c8a7796d5f3d48b5579e/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6d6f64656c2d73706563696669636174696f6e)](https://camo.githubusercontent.com/3a19c618988559088c66e05a19b82278b07c435adbe3c8a7796d5f3d48b5579e/68747470733a2f2f62616467656e2e6e65742f6769746875622f6c6963656e73652f636f6e74726962757474652f6d6f64656c2d73706563696669636174696f6e)Usage
-----

[](#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
-----------

[](#development)

This package was maintained by these authors.

[ ![](https://avatars2.githubusercontent.com/u/538058?v=3&s=80)](https://github.com/f3l1x)---

Consider to [support](https://contributte.org/partners.html) **contributte** development team. Also thank you for using this package.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance49

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/538058?v=4)[Milan Šulc](/maintainers/f3l1x)[@f3l1x](https://github.com/f3l1x)

---

Top Contributors

[![f3l1x](https://avatars.githubusercontent.com/u/538058?v=4)](https://github.com/f3l1x "f3l1x (6 commits)")[![petrparolek](https://avatars.githubusercontent.com/u/6066243?v=4)](https://github.com/petrparolek "petrparolek (4 commits)")

---

Tags

modelnette-frameworkphp

### Embed Badge

![Health badge](/badges/minetro-model-specification/health.svg)

```
[![Health](https://phpackages.com/badges/minetro-model-specification/health.svg)](https://phpackages.com/packages/minetro-model-specification)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
