{"id":23782557,"url":"https://github.com/roydejong/php-activerecord-utils","last_synced_at":"2025-09-07T21:37:48.152Z","repository":{"id":57047527,"uuid":"204949450","full_name":"roydejong/php-activerecord-utils","owner":"roydejong","description":"Simple utilities that make writing php-activerecord queries more convenient.","archived":false,"fork":false,"pushed_at":"2019-08-28T17:12:47.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T22:31:03.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roydejong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-28T14:19:19.000Z","updated_at":"2019-08-28T17:12:49.000Z","dependencies_parsed_at":"2022-08-23T17:50:21.723Z","dependency_job_id":null,"html_url":"https://github.com/roydejong/php-activerecord-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roydejong/php-activerecord-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roydejong%2Fphp-activerecord-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roydejong%2Fphp-activerecord-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roydejong%2Fphp-activerecord-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roydejong%2Fphp-activerecord-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roydejong","download_url":"https://codeload.github.com/roydejong/php-activerecord-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roydejong%2Fphp-activerecord-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274101212,"owners_count":25222444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-01T12:16:09.427Z","updated_at":"2025-09-07T21:37:48.112Z","avatar_url":"https://github.com/roydejong.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✍ `php-activerecord-utils`\n**Simple utilities that make writing `php-activerecord` queries more convenient.**\n\n[![Latest Stable Version](https://poser.pugx.org/roydejong/php-activerecord-utils/v/stable)](https://packagist.org/packages/roydejong/php-activerecord-utils)\n[![Build Status](https://travis-ci.org/roydejong/php-activerecord-utils.svg?branch=master)](https://travis-ci.org/roydejong/php-activerecord-utils)\n[![License](https://poser.pugx.org/roydejong/php-activerecord-utils/license)](https://packagist.org/packages/roydejong/php-activerecord-utils)\n\n## Getting started\nAdd this library as a [Composer](https://getcomposer.org/) dependency:\n\n    composer require roydejong/php-activerecord-utils\n\nOnce included, you'll be able to autoload the desired classes from the `ActiveRecordUtils\\` namespace.\n\n## Conditions\n`ActiveRecordUtils\\Composers\\Conditions` lets you elegantly compose readable `conditions` parameters for activerecord queries.\n\n### Basic usage\n\n```\n\u003c?php\n\nuse ActiveRecordUtils\\Composers\\Conditions;\n\nConditions::make()\n    -\u003ewhere('employee_id = ?', 123)\n    -\u003eor('login_id = ?', 123)\n    -\u003eandWhere('is_enabled = 1')\n    -\u003evalue();\n\n// Returns: [\"(employee_id = ? OR login_id = ?) AND (is_enabled = 1)\", 123, 123]\n```\n\n### Features\n\n- 📝 **Better syntax:** Programmatically compose your WHERE clauses with a syntax that's easier to read and more convenient to maintain.\n- ➕ **Easy grouping:** Use `andWhere()`, `orWhere()` to start a new parentheses group, or use `and()`, `or()` to add another condition to he current group.\n- ✅ **Auto validation:** Issues like wrong parameter count are automatically detected and produce convenient and readable error messages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froydejong%2Fphp-activerecord-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froydejong%2Fphp-activerecord-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froydejong%2Fphp-activerecord-utils/lists"}