Skip to content

Commit

Permalink
Merge php8-support
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarko committed Jul 3, 2022
2 parents 85f19a6 + 2d4b7ce commit 1389080
Show file tree
Hide file tree
Showing 9 changed files with 1,192 additions and 254 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Here `users` is the table name **without prefix**. The prefix will be applied au

#### Other Examples

- [Queries](http://laravel.com/docs/5.0/queries)
- [Eloquent ORM](http://laravel.com/docs/5.0/eloquent)
- [Queries](https://laravel.com/docs/8.x/queries)
- [Eloquent ORM](https://laravel.com/docs/8.x/eloquent)

### Writing a Model

Expand Down Expand Up @@ -142,19 +142,20 @@ var_dump(Post::type('page')->status('publish')->get()->toArray()); // get pages
### How it Works

- Eloquent is mainly used here as the query builder
- [WPDB](http://codex.wordpress.org/Class_Reference/wpdb) is used to run queries built by Eloquent
- [WPDB](https://developer.wordpress.org/reference/classes/wpdb/) is used to run queries built by Eloquent
- Hence, we have the benfit to use plugins like `debug-bar` or `query-monitor` to get SQL query reporting.
- It doesn't create any extra MySQL connection


### Minimum Requirement
- PHP 5.6.4+
- PHP 7.3+ (For support of older PHP version use wp-orm major v1.1 and minors within that version)
- WordPress 4.0+


### License

```
Copyright (C) 2020 Darko Gjorgjijoski (https://darkog.com)
Copyright (C) 2022 Darko Gjorgjijoski (https://darkog.com)
This file is part of wp-orm
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
],
"homepage": "https://github.com/ignitekit/wp-orm",
"require": {
"php": "^5.6.4|^7.0",
"php": "^7.3|^8.0",
"ext-json": "*",
"illuminate/database": "^5.4",
"illuminate/pagination": "^5.4"
"illuminate/database": "^v8.0",
"illuminate/pagination": "^8.0",
"illuminate/support": "^8.0"
},
"license": "GPL-2.0",
"authors": [
Expand Down
Loading

0 comments on commit 1389080

Please sign in to comment.