{"id":14955018,"url":"https://github.com/dimitribouteille/wp-orm","last_synced_at":"2025-12-12T07:31:28.921Z","repository":{"id":48908412,"uuid":"260338272","full_name":"dimitriBouteille/wp-orm","owner":"dimitriBouteille","description":"✨ WordPress ORM with Eloquent, an object-relational mapper that makes it enjoyable to interact with your database.","archived":false,"fork":false,"pushed_at":"2025-03-22T02:30:01.000Z","size":530,"stargazers_count":80,"open_issues_count":4,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T12:52:18.996Z","etag":null,"topics":["database","eloquent","eloquent-database","eloquent-orm","migration-tool","mysql","orm","wordpress","wordpress-development","wordpress-orm","wordpress-starter"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/dbout/wp-orm","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/dimitriBouteille.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-30T23:15:20.000Z","updated_at":"2025-03-12T20:15:46.000Z","dependencies_parsed_at":"2024-02-11T18:27:53.241Z","dependency_job_id":"c981c5e6-1aad-4d57-9f6d-e1541719c440","html_url":"https://github.com/dimitriBouteille/wp-orm","commit_stats":{"total_commits":275,"total_committers":5,"mean_commits":55.0,"dds":"0.10181818181818181","last_synced_commit":"53738370b808bb57cf36cf7bce69330ced0b8038"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitriBouteille%2Fwp-orm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitriBouteille%2Fwp-orm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitriBouteille%2Fwp-orm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitriBouteille%2Fwp-orm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimitriBouteille","download_url":"https://codeload.github.com/dimitriBouteille/wp-orm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247182389,"owners_count":20897381,"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":["database","eloquent","eloquent-database","eloquent-orm","migration-tool","mysql","orm","wordpress","wordpress-development","wordpress-orm","wordpress-starter"],"created_at":"2024-09-24T13:10:23.788Z","updated_at":"2025-12-12T07:31:23.888Z","avatar_url":"https://github.com/dimitriBouteille.png","language":"PHP","readme":"# WordPress ORM with Eloquent\n\n[![GitHub Release](https://img.shields.io/github/v/release/dimitriBouteille/wp-orm)](https://github.com/dimitriBouteille/wp-orm/releases)\n[![Tests](https://img.shields.io/github/actions/workflow/status/dimitriBouteille/wp-orm/tests.yml?label=tests)](https://github.com/dimitriBouteille/wp-orm/actions/workflows/tests.yml)\n[![Packagist Downloads](https://img.shields.io/packagist/dt/dbout/wp-orm?color=yellow)](https://packagist.org/packages/dbout/wp-orm)\n[![Eloquent version](https://img.shields.io/packagist/dependency-v/dbout/wp-orm/illuminate%2Fdatabase?color=orange)](https://github.com/dimitriBouteille/wp-orm/blob/main/composer.json)\n[![Coverage Status](https://coveralls.io/repos/github/dimitriBouteille/wp-orm/badge.svg?branch=main)](https://coveralls.io/github/dimitriBouteille/wp-orm)\n\nWordPress ORM with Eloquent is a small library that adds a basic ORM into WordPress, which is easily extendable and includes models for core WordPress models such as posts, post metas, users, comments and more.\nThe ORM is based on [Eloquent ORM](https://laravel.com/docs/eloquent) and uses the WordPress connection (`wpdb` class).\n\n\u003e [!TIP]\n\u003e To simplify the integration of this library, we recommend using WordPress with one of the following tools: [Bedrock](https://roots.io/bedrock/), [Themosis](https://framework.themosis.com/) or [Wordplate](https://github.com/wordplate/wordplate#readme).\n\n## Features\n\n- ✅ Support core WordPress models: `Comment`, `Option`, `Post`, `TermTaxonomy`, `Term`, `User`, `PostMeta` and `UserMeta`\n- ✅ Support core WordPress post type: `Article`, `Attachment` and `Page`\n- ✅ Based on core WordPress database connection (`wpdb` class), no configuration required !\n- ✅ Custom functions to filter models with meta\n- ✅ Meta casting (e.g. [Attribute Casting](https://laravel.com/docs/eloquent-mutators#attribute-casting))\n- ✅ Multisite support\n- ❤️ Easy integration of a custom post and comment type\n- ❤️ Easy model creation for projects with custom tables\n- ❤️ All the features available in Eloquent, are usable with this library !\n\n**Not yet developed but planned in a future version:**\n\n- 🗓️ [Create migration tool with Eloquent](https://github.com/dimitriBouteille/wp-orm/issues/28)\n\n## Documentation\n\nThis documentation only covers the specific points of this library, if you want to know more about Eloquent, the easiest is to look at [the documentation of Eloquent](https://laravel.com/doc/eloquent).\n\nYou can find all the documentation in [the wiki](https://github.com/dimitriBouteille/wp-orm/wiki).\n\n## Installation\n\n**Requirements**\n\nThe server requirements are basically the same as for [WordPress](https://wordpress.org/about/requirements/) with the addition of a few ones :\n\n- PHP \u003e= 8.2\n- [Composer](https://getcomposer.org/)\n\n**Installation**\n\nYou can use [Composer](https://getcomposer.org/). Follow the [installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have composer installed.\n\n~~~bash\ncomposer require dbout/wp-orm\n~~~\n\nIn your `wp-config.php` make sure you include the autoloader:\n\n~~~php\nrequire __DIR__ . '/vendor/autoload.php';\n~~~\n\n🎉 You have nothing more to do, you can use the library now! Not even need to configure database accesses because it's the `wpdb` connection that is used.\n\n## Contributing\n\nWe encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements. Have a look at our [contributing guidelines](CONTRIBUTING.md) to find out how to raise a pull request.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitribouteille%2Fwp-orm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitribouteille%2Fwp-orm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitribouteille%2Fwp-orm/lists"}