Download the PHP package wp-kit/magic-meta without Composer
On this page you can find all versions of the php package wp-kit/magic-meta. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wp-kit/magic-meta
More information about wp-kit/magic-meta
Files in wp-kit/magic-meta
Package magic-meta
Short Description A wp-kit component that handles Eloquent appending and querying of PostMeta
License MIT
Homepage https://github.com/wp-kit/magic-meta
Informations about the package magic-meta
wp-kit/magic-meta
This is a wp-kit component that handles appending and querying of .
When using , wouldn't it be great if we could append to the Model just as Wordpress does natively? And wouldn't be great to query data based on and parameters? This is exactly what handles.
Installation
If you're using , install via in the root of your installation, otherwise install in your driven theme folder:
Usage
Model
comes with two traits, so all you need to do is include these in your model.
Based on you can the model provided and use the trait.
relies on a method on the Model to return the , this is exactly what provides.
Query
Parameters
You can use Query Scope on to check for any of the following parameters. We also allow the query to check for any magic meta at root level of the parameters:
Using transformQuery
To Do
- Make transformQuery agnostic to Request parameters, using Collection instead in case users are using jsonapi standard etc.
Get Involved
To learn more about how to use check out the docs:
Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:
- Reporting a bug issue
- Suggesting features
- Sending a pull request with code fix or feature
- Following the project on GitHub
- Sharing the project around your community
For details about contributing to the framework, please check the contribution guide.
Requirements
Wordpress 4+
PHP 5.6+
License
wp-kit/magic-meta is open-sourced software licensed under the MIT License.