tekton / wordpress
Tekton Wordpress is a lightweight PHP framework that integrates the power of Laravel, through Tekton, into Wordpress.
Requires
- php: >=7.0.0
- composer/installers: ~1.0
- illuminate/contracts: ~5.4.0
- illuminate/view: ~5.4.0
- jjgrainger/posttypes: ^1.0
- nsrosenqvist/blade-compiler: ^1.1.1
- origgami/cmb2-grid: @dev
- tekton/assets: ^1.0.0
- tekton/foundation: ^1.0.0
- tekton/support: ^1.0.0
- webdevstudios/cmb2-post-search-field: 0.2.5
- wpackagist-plugin/cmb2: 2.2.4
This package is auto-updated.
Last update: 2019-02-20 19:10:52 UTC
README
Tekton Wordpress is a lightweight PHP framework that integrates the power of Laravel, through Tekton, into Wordpress.
To get started, just require the project in your composer configuration and initialize the framework. Put the following sample code into your theme's functions.php
to get it set up.
Sample Code
// Autoload classes
require_once __DIR__ . '/vendor/autoload.php';
use \Tekton\Wordpress\Framework;
// Theme constants
define('THEME_PREFIX', '_mytheme_');
define('DATE_FORMAT', 'M j, Y');
Framework::instance()->init();
Features
The framework integrates Laravel's Blade templating engine and moves the base template folder into the [theme-path]/templates
sub directory.
All configuration files should be put in [theme-path]/config
and any bootstrapping code for the theme can be put in [theme-path]/bootstrap
from where it will be automatically loaded.