New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

laravel-admin/wordpress

The Laravel Framework with a Wordpress CMS
103 4
Install
composer require laravel-admin/wordpress
Latest Version:0.1.1
PHP:>=5.6.4
Laravel:5
License:MIT
Last Updated:Feb 6, 2017
Links: GitHub  ·  Packagist
Maintainer: marcoboom

Laravel setup with Wordpress as CMS

Note: This project is just a default Laravel 5.4 setup added with some scaffoling to get wordpress as your project setup.

This project has two main goals

  1. Get Wordpress as a depency within your Laravel App.
  2. Access the Wordpress data on a Eloquent like approach.

To achieve this we combined two great libraries from Github. For Wordpress as a dependency we use John P. Bloch's [composer added Wordpress] (https://github.com/johnpbloch/wordpress).

To access the data with an Eloquent Approad we use the outstanding library from Junio Grossi; [Corcel] (https://github.com/corcel/corcel)

Installation

Create a new composer project

composer create-project laravel-admin/wordpress my-project-name

Fill in your .env file. Notice 2 things:

  • Add the unique Wordpress salts to the .env from [https://api.wordpress.org/secret-key/1.1/salt/]
  • Change the APP_URL to your actual host name. This is important for running Wordpress

Run the following artisan command to create a symbolic link for the public storage. Wordpress attachments will be stored in the default public Laravel storage.

php artisan storage:link

Now you can run the Wordpress admin from your host with the path /wp/wp-admin. The first time you have to setup your site.

Usage

...

Related Packages

themosis/framework

The Themosis framework.

321,141 666
laraish/framework

The Laraish Framework for WordPress.

5,929 5
laraish/contracts

The Laraish Contracts package.

5,644 0
laraish/support

The Laraish Support Package.

5,623 0
laraish/options

Package for creating options page in WordPress.

5,572 10

Version History

Version Released PHP Laravel License
0.1.1 >=5.6.4 5.4.* MIT
0.1.0 >=5.6.4 5.4.* MIT