Download the PHP package ignitekit/wp-orm without Composer
On this page you can find all versions of the php package ignitekit/wp-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wp-orm
ORM for WordPress
Laravel Eloquent based ORM for WordPress
This is a fork of the original library written by Tareq Hasan with some more improvements and changes.
Package Installation
To install the library run:
Usage Example
Basic Usage
Creating Models For Custom Tables
You can use custom tables of the WordPress databases to create models:
Retrieving All Rows From A Table
Here users
is the table name without prefix. The prefix will be applied automatically.
Other Examples
Writing a Model
The class name Employee
will be translated into PREFIX_employees
table to run queries. But as usual, you can override the table name.
In-built Models for WordPress
- Post
- Comment
- Post Meta
- User
- User Meta
Filter Post
by post_status
and post_type
How it Works
- Eloquent is mainly used here as the query builder
- WPDB is used to run queries built by Eloquent
- Hence, we have the benfit to use plugins like
debug-bar
orquery-monitor
to get SQL query reporting. - It doesn't create any extra MySQL connection
Minimum Requirement
- PHP 5.6.4+
- WordPress 4.0+
License
All versions of wp-orm with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3|^8.0
ext-json Version *
illuminate/database Version ^v8.0
illuminate/pagination Version ^8.0
illuminate/support Version ^8.0
ext-json Version *
illuminate/database Version ^v8.0
illuminate/pagination Version ^8.0
illuminate/support Version ^8.0
The package ignitekit/wp-orm contains the following files
Loading the files please wait ....