{"id":20140235,"url":"https://github.com/10quality/wp-query-builder","last_synced_at":"2025-04-09T18:23:02.117Z","repository":{"id":35118312,"uuid":"208922757","full_name":"10quality/wp-query-builder","owner":"10quality","description":"WordPress SQL query builder library for custom models and data querying.","archived":false,"fork":false,"pushed_at":"2023-02-25T18:27:28.000Z","size":57,"stargazers_count":38,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"v1.0","last_synced_at":"2025-03-23T20:22:57.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.wordpress-mvc.com/","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/10quality.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-09-17T00:23:26.000Z","updated_at":"2025-02-27T15:51:36.000Z","dependencies_parsed_at":"2023-01-15T14:11:57.419Z","dependency_job_id":null,"html_url":"https://github.com/10quality/wp-query-builder","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fwp-query-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fwp-query-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fwp-query-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10quality%2Fwp-query-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10quality","download_url":"https://codeload.github.com/10quality/wp-query-builder/tar.gz/refs/heads/v1.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085909,"owners_count":21045237,"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","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":"2024-11-13T21:49:50.454Z","updated_at":"2025-04-09T18:23:02.093Z","avatar_url":"https://github.com/10quality.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordpress Query Builder Library\n\n[![Latest Stable Version](https://poser.pugx.org/10quality/wp-query-builder/v/stable)](https://packagist.org/packages/10quality/wp-query-builder)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/10quality/wp-query-builder/test.yml)\n[![Total Downloads](https://poser.pugx.org/10quality/wp-query-builder/downloads)](https://packagist.org/packages/10quality/wp-query-builder)\n[![License](https://poser.pugx.org/10quality/wp-query-builder/license)](https://packagist.org/packages/10quality/wp-query-builder)\n\nThis package provides a SQL query builder class built on top of WordPress core Database accessor. Usability is similar to Laravel's Eloquent.\n\nThe library also provides an abstract class and a trait to be used on data models built for custom tables. The abstract class extends our generic [PHP model](https://github.com/10quality/php-data-model) class.\n\nThis is the perfect package to use within the [WordPress MVC](https://www.wordpress-mvc.com/) framework.\n\n## Install\n\nThis package / library requires composer.\n\n```bash\ncomposer require 10quality/wp-query-builder\n```\n\n## Usage \u0026 Documentation\n\nPlease read the [wiki](https://github.com/10quality/wp-query-builder/wiki) for documentation.\n\nQuick snippet sample:\n```php\n$books = wp_query_builder()\n    -\u003eselect( 'ID' )\n    -\u003eselect( 'post_name AS name' )\n    -\u003efrom( 'posts' )\n    -\u003ewhere( ['post_type' =\u003e 'book'] )\n    -\u003eget();\n\nforeach ( $books as $book ) {\n    echo $book-\u003eID;\n    echo $book-\u003ename;\n}\n```\n\n## Coding Guidelines\n\nPSR-2 coding guidelines.\n\n## License\n\nMIT License (c) 2019 [10 Quality](https://www.10quality.com/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10quality%2Fwp-query-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10quality%2Fwp-query-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10quality%2Fwp-query-builder/lists"}