Skip to content

Commit

Permalink
Update readme/composer config
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarko committed Jul 3, 2022
1 parent cd5e785 commit 2d4b7ce
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 25 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
48 changes: 28 additions & 20 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
{
"name": "ignitekit/wp-orm",
"description": "Laravel Eloquent inspired ORM package for WordPress",
"keywords": ["wordpress", "plugin", "orm", "eloquent", "sql"],
"homepage": "https://github.com/ignitekit/wp-orm",
"require": {
"illuminate/database": "^v8.0",
"illuminate/pagination": "^8.0",
"illuminate/support": "^8.0"
},
"license": "GPL-2.0",
"authors": [
{
"name": "Darko Gjorgjijoski",
"email": "[email protected]"
}
],
"autoload" : {
"psr-4" : {
"IgniteKit\\WP\\ORM\\": "src/"
}
"name": "ignitekit/wp-orm",
"description": "Laravel Eloquent inspired ORM package for WordPress",
"keywords": [
"wordpress",
"plugin",
"orm",
"eloquent",
"sql"
],
"homepage": "https://github.com/ignitekit/wp-orm",
"require": {
"php": "^7.3|^8.0",
"ext-json": "*",
"illuminate/database": "^v8.0",
"illuminate/pagination": "^8.0",
"illuminate/support": "^8.0"
},
"license": "GPL-2.0",
"authors": [
{
"name": "Darko Gjorgjijoski",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"IgniteKit\\WP\\ORM\\": "src/"
}
}
}

0 comments on commit 2d4b7ce

Please sign in to comment.