|
5 | 5 | WordPress 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.
|
6 | 6 | The ORM is based on [Eloquent ORM](https://laravel.com/docs/eloquent) and uses the WordPress connection (`wpdb` class).
|
7 | 7 |
|
8 |
| -> 💡 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). |
| 8 | +> [!TIP] |
| 9 | +> 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). |
9 | 10 |
|
10 |
| -### Features |
| 11 | +## Features |
11 | 12 |
|
12 | 13 | - ✅ Support core WordPress models: `Comment`, `Option`, `Post`, `TermTaxonomy`, `Term`, `User`, `PostMeta` and `UserMeta`
|
13 | 14 | - ✅ Support core WordPress post type: `Article`, `Attachment` and `Page`
|
14 | 15 | - ✅ Based on core WordPress database connection (`wpdb` class), no configuration required !
|
15 | 16 | - ✅ Custom functions to filter models with meta
|
16 |
| -- ❤️ Easy integration of a custom post type |
| 17 | +- ✅ Meta casting (e.g. [Attribute Casting](https://laravel.com/docs/eloquent-mutators#attribute-casting)) |
| 18 | +- ❤️ Easy integration of a custom post and comment type |
17 | 19 | - ❤️ Easy model creation for projects with custom tables
|
18 | 20 | - ❤️ All the features available in Eloquent, are usable with this library !
|
19 | 21 |
|
20 | 22 | **Not yet developed but planned in a future version:**
|
21 | 23 |
|
22 |
| -- 🗓️ Create custom comment type |
23 |
| -- 🗓️ Meta casting (e.g. [Attribute Casting](https://laravel.com/docs/10.x/eloquent-mutators#attribute-casting)) |
| 24 | +- 🗓️ [Create migration tool with Eloquent](https://github.com/dimitriBouteille/wp-orm/issues/28) |
24 | 25 |
|
25 |
| -### Documentation |
| 26 | +## Documentation |
26 | 27 |
|
27 |
| -This 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/docs/10.x/eloquent) :) |
| 28 | +This 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). |
28 | 29 |
|
29 |
| -- [Installation](#installation) |
30 |
| -- [Use WordPress core models](doc/wordpress-core-models.md) |
31 |
| -- [Filter data](/doc/filter-data.md) |
32 |
| - - [With findOneBy*](/doc/filter-data.md#with-findoneby) |
33 |
| - - [With taps](/doc/filter-data.md#with-taps) |
34 |
| - - [With query builder](/doc/filter-data.md#with-query-builder) |
35 |
| -- [Events](/doc/events.md) |
36 |
| -- [Create custom model](doc/create-model.md) |
37 |
| - - [Generic Model](doc/create-model.md#generic-model) |
38 |
| - - [Custom Post Type Model](doc/create-model.md#custom-post-type-model) |
| 30 | +You can find all the documentation in [the wiki](https://github.com/dimitriBouteille/wp-orm/wiki). |
39 | 31 |
|
40 | 32 | ## Installation
|
41 | 33 |
|
|
0 commit comments