$criteria = new Criteria(); $criteria->select('*') ->from('users') ->where('status', '=', 'active') ->andWhere('age', '>', 18);
$criteria = new Criteria(); $criteria->insertInto('users') ->values(['name' => 'John Doe', 'age' => 30, 'status' => 'active']);
$criteria = new Criteria(); $criteria->update('users') ->set('status', 'inactive') ->where('age', '>', 45) ->execute();Package Library: PHP Criteria is a part of PHP-Activerecord package library. It is a lightweight and flexible ORM (Object-Relational Mapping) for PHP that allows developers to work with databases in an object-oriented fashion.