PHPackages                             tacoberu/domains - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tacoberu/domains

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tacoberu/domains
================

PHP DSL for quering between app and business layers.

v0.3.12(1mo ago)0123MITPHPPHP &gt;=5.3.0

Since Nov 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/tacoberu/domains)[ Packagist](https://packagist.org/packages/tacoberu/domains)[ RSS](/packages/tacoberu-domains/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (10)Versions (18)Used By (0)

Criteria
========

[](#criteria)

[![Build Status](https://camo.githubusercontent.com/3c601ceeeadea815f6a3ecf59238f837b6489f3e3e02bf34fef19c92b2b83f88/68747470733a2f2f7472617669732d63692e6f72672f7461636f626572752f646f6d61696e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tacoberu/domains)

PHP DSL for quering between app and business layers.

Inspirated by SQL, LINQ, or Dibi. Used for quering to database, file, filesystem, xml, anything.

- with - o jaká data máme zájem.
- where - podmínka, který musí být splněna na požadovaných datech.
- limit - kolik toho chceme,
- offset - posunutí okna
- orderByDesc, orderByAsc - seřazení výsledků.

Example
-------

[](#example)

Příklad dotazu na soubor - dvacet souborů menších jak 400B včetně obsahu a informace o souboru:

```
Criteria::range('IO/File', 20)
	->with('fileInfo')
	->with('content')
	->where('fileInfo.size
