Download the PHP package meesoverdevest/wp_on_laravel without Composer
On this page you can find all versions of the php package meesoverdevest/wp_on_laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download meesoverdevest/wp_on_laravel
More information about meesoverdevest/wp_on_laravel
Files in meesoverdevest/wp_on_laravel
Package wp_on_laravel
Short Description A package that syncs WordPress posts, categories and tags with your laravel project.
License MIT
Informations about the package wp_on_laravel
WP-on-Laravel
A Laravel Package which makes use of WordPress to easily manage blog content, but also makes it possible to access all WordPress' posts, categories and tags through Eloquent Models.
Requirements
- WP CLI globally installed
- A valid in your -file
1 Run
2 Add service provider to config
Add the service provider in :
3 Run the installer
Run the following from your project folder:
Replace $password and $email with your wished credentials to use in WordPress.
gitignore public/blog if you don't want you content and uploads to be public.
4 Install Cartalyst Tags
Our package depends on Cartalyst Tags, which installs automatically as dependency. To be able to use Cartalyst Tags with WP_on_Laravel, you have to run their migrations as well. Doing so: or without publishing
5 Run migration
After running the installation command ()
Run to migrate the new migrations
6 Edit NGINX config
To enable outer access to the public WordPress installation you have to add the following to your website's nginx config:
Don't forget to run
7 Syncing Wordpress Posts, Categories and Tags
8 Using Wordpress Posts, Categories and Tags
Use them freely inside your project. You can use the models like:
====== TODO ======
- Add Delete Method and Webhooks to Package and functions.php in Wordpress installation
- Extend content retrieval methods
- Normalize the codebase