WP Manifestindependent plugin directory
manifest / developer / wp-bladeone-plugin

WP Blade(One)

Wordpress Plugin to allow the use of Laravel Blade syntax in theme

by dievardump · github.com/dievardump/wp-bladeone-plugin · website

2stars
64composer installs
3forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/dievardump/wp-bladeone-plugin/archive/refs/heads/master.zip

Also on Packagist as dievardump/wp-bladeone-plugin:

composer require dievardump/wp-bladeone-plugin

From the readme

WP Blade(One) Wordpress plugin to allow the use of Blade syntax in your templates. to achieve this, this plugin use BladeOne, which is a standalone port of Laravel's Blade, without dependencies. 1 - Installation You will need to use composer and have composer/installers installed and configured, so composer knows how to install this plugin in the right wordpress directory. Then you just need to composer require dievardump/wp-bladeone-plugin And activate it in the Wordpress plugins panel 2 - Configuration There are 3 constants that you can define to configure the WP BladeOne. - WPBLADEONEVIEWS Where BladeOne will look for the view files. If you use WP Blade(One) Starter Template or want WP BladeOne to work with Wordpress hierarchy, it should be your theme directory. If you just want to render some templates using wpbladeone()-run($viewname, $data) then you can set another path. (see Usage below) default to getstylesheetdirectory() - WPBLADEONECACHE Where BladeOne will have the right to write the views cached files. Usually somewhere in WPCONTENTDIR as other directories are often not writable. default to WPCONTENTDIR . '/cache/.wp-bladeone-cache' - WPBLADEONEMODE Confi

Read the full README on GitHub →