tekton/wordpress

This package is abandoned and no longer maintained. The author suggests using the dynamis/framework package instead.

Tekton Wordpress is a lightweight PHP framework that integrates the power of Laravel, through Tekton, into Wordpress.

1.0.3 2017-04-12 11:19 UTC

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.