codelytv/criteria

There is no license information available for the latest version (0.1.3) of this package.

Installs: 2 244

Dependents: 8

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/codelytv/criteria

0.1.3 2024-08-06 13:56 UTC

This package is auto-updated.

Last update: 2025-10-06 16:21:23 UTC


README

Codely logo

🎼 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 than
  • CONTAINS: Contains. It will translate to like in SQL.
  • NOT_CONTAINS: Not contains. It will translate to not like in SQL.
$criteria = Criteria::fromPrimitives(
    [
        ['field' => 'email', 'operator' => 'CONTAINS', 'value' => 'javi'],
    ],
    'name',
    'asc',
    100,
    3
)