WordPress+ wrapped WordPress in high-speed micro framework Lumen powered by Laravel 5.
- Existing asset such as the WordPress plug-in exhibited all over the world and a theme is available.
- It's possible to renew the WordPress body (of course, plug-in).
- With Uniform Resource Locator gate (the bed where HTTP access from a browser is filtered).
- The coding speed of a HyperText Markup Language template goes up by a Blade template engine.
- The MySQL use which is to utilize a schema builder query builder of Laravel and is general can be done.
- An existence system and cooperation with the outside web service are easy to make.
- The original management screen done based on a management screen of WordPress is easy to make (The cost of the management screen making can be lowered.)
- Mobile cooperation (ex. notice to smart phone) is also easy!
- It's possible to carry out by a PHP built-in server (The practical use for which I don't depend on Apache is also possible.)
- PHP package management using Composer is possible.
- A tool for all kinds' web craftsmen of giblets of Laravel 5 can be used (O-Auth authentication, command scheduler, Redis and cloud storage integration and all that).
- PHP more than 5.6 (for a Lumen framework, more than 5.5.9).
- PHP expansion: openssl, mbstring, pdo and pdo-mysql.
- Composer
- Theme plug-in making from a command line
- Theme making using Blade template engine
- Multisite (Option: Please designate environment variable
WP_MULTISITE=true
to make it effective. Only corresponding to the subdomain type.) - Link manager (Option: Please designate environment variable
WP_LINK_MANAGER=true
to make it effective.)
It can be installed from Composer or source cord download.
Please open a command prompt and carry out the next command.
$ cd <parent-of-an-install-directory>
$ composer create-project laravel-plus/wordpress <an-install-directory>
A Download ZIP button of our repository of GitHub is pressed and source cord is downloaded.
And ZIP is developed in an optional directory of a local machine.
Please open a command prompt and carry out the next command.
$ cd <installed-directory>
$ php composer update
$ cp .env.example .env
The environment variable setting filing to which a project is peculiar writes the setting by which it's for a data base in .env
.
Please refer to .env.example for a setting example.
It can start by a PHP built-in server.
Please open a command prompt and carry out the next command.
$ cd <installed-directory>
$ php artisan serve
When http://localhost:8000
is opened by a web browser, you can access.
A setup of WordPress starts at the time of the first time start.
A management screen is http://localhost:8000/wp-admin/
.
Lumen 5 / Laravel 5 is recommending to take slash /
of an end of Uniform Resource Locator by setting of a web server.
But WordPress needs slash /
of an end, so please be careful in case of setting.
A redirection loop sometimes occurs after login to a management screen.
wordpress:status
Status display for WordPress.wordpress:install
Install WordPress tables.wordpress:uninstall
Uninstall WordPress tables.wordpress:multisite:install
Install tables for multisite.wordpress:multisite:uninstall
Uninstall tables for multisite.wordpress:theme
List of themes.wordpress:theme <name>
Detail of theme.wordpress:plugin
List of plugins.wordpress:plugin <name>
Detail of plugin.make:theme <name>
Make theme.make:plugin <name>
Make plugin.
A directory as blade
is made in the theme directory and a file along a WordPress template file name agreement is arranged there.
The extension is made .blade.php
.
When setting environment variable WP_BLADE_PRECOMPILE
as true
(default), when indicating a page by WordPress+, a compiled PHP file is output in theme directory falling plumb down. WordPress+ is original mounting for the Blade engine used at the same time.
When setting environment variable WP_BLADE_PRECOMPILE
as false
, a PHP file in the sky which corresponds to a blade file is output in theme directory falling plumb down. The Blade engine used at the same time is mounting of Laravel 5.
@filter('filter-name')
Call filter.@action('action-name')
Invoke action.@shortcode([shortcode-name param1="value1"])
Expand shortcode.@postloop
@postloop($posts)
A loop block of Post query is started.@postempty
A query begins to block one in case of 0 cases.@endpostloop
A loop block of Post query is ended.
WordPress+ is open-sourced software licensed under the MIT license
Lumen framework is open-sourced software licensed under the MIT license
WordPress is open-sourced software licensed under the – GNU General Public License –
2015 Fumio Furukawa, All rights reserved.