framepress/framepress

dev-master 2018-08-01 00:40 UTC

This package is auto-updated.

Last update: 2024-04-05 04:33:45 UTC


README

Framework for Wordpress themes&plugins development.

Installation

  • Go to theme or plugin folder and execute command:
    php composer.phar create-project Framepress/framepress-app app

  • Add following code to start of theme functions.php or plugin main file:

defined ( 'DS' ) or define ( 'DS', DIRECTORY_SEPARATOR );
$loader = require_once implode ( DS, [ 
		__DIR__,
		'app',
		'vendor',
		'autoload.php' 
] );

$config = require_once implode ( DS, [ 
		__DIR__,
		'app',
		'config.php' 
] );
new \Framepress\Framepress ( $config );

Basic usage