Download the PHP package andremyid/post without Composer
On this page you can find all versions of the php package andremyid/post. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download andremyid/post
More information about andremyid/post
Files in andremyid/post
Download andremyid/post
More information about andremyid/post
Files in andremyid/post
Vendor andremyid
Package post
Short Description The Andremyid Post package.
License Project
Homepage http://www.andre.my.id
Package post
Short Description The Andremyid Post package.
License Project
Homepage http://www.andre.my.id
Please rate this library. Is it a good library?
Informations about the package post
post
The Andremyid Post package.
Installation
-
Add the following to your
Composer JSON
file -
Run Composer
-
Add the following to 'Andremyid/Framework-Core' => 'ServiceProvider'
- Run the migration
You can use database from WordPress, or copy from sample database migrate manually (you can modify as you like of the sample)
Usage
Extending
-
Sample Backend Page
- Sample Frontend Page
Model
Posts Table
Post::model();
to call back new Model Post (wp_posts
)Post::findSlug('sample-post-name')
return array data from query wherewp_posts.post_name = $slug
Post::find($id);
to getwp_posts
whereid = $id
-
Post::create($data);
to createwp_posts
Post::update($id);
to updatewp_post
whereid = $id
Post::delete($id);
to deletewp_post
whereid = $id
Terms Table
Term::model();
to call back new Model Term (wp_terms
)Term::findSlug('sample-slug')
return data from query wherewp_terms.name = $slug
Term::find($id);
to getwp_terms
whereterm_id = $id
Term::create($data);
to createwp_terms
Term::update($id);
to updatewp_terms
whereid = $id
Term::delete($id);
to deletewp_terms
whereid = $id
Credits
It's inspired by WordPress
All versions of post with dependencies
PHP Build Version
Package Version
The package andremyid/post contains the following files
Loading the files please wait ....