twork / controller
Use template controllers in WordPress.
Installs: 69
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: 7.*
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
README
Make use of template controllers for WordPress.
Installation
composer require twork/controller
Usage
<?php $config = require 'config.php'; new ControllerDispatcher([ 'templates' => [ 'front-page' => FrontPageController::class, 'index' => IndexController::class, 'page' => PageController::class, ]);