codelytv / criteria
Installs: 2 450
Dependents: 8
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/codelytv/criteria
Requires
- php: ^8.2
- lambdish/phunctional: ^2.1
Requires (Dev)
- codelytv/coding-style: ^1.3
README
🎼 Criteria for PHP
🔒 Read-only repository
Any modification must be done in the main repository.
📥 Installation
composer require codelytv/criteria
💻 Usage
Valid operators
=: Equal!=: Not equal>: Greater than<: Less thanCONTAINS: Contains. It will translate tolikein SQL.NOT_CONTAINS: Not contains. It will translate tonot likein SQL.
$criteria = Criteria::fromPrimitives( [ ['field' => 'email', 'operator' => 'CONTAINS', 'value' => 'javi'], ], 'name', 'asc', 100, 3 )