akufen / orchestra
A minimalist object-oriented superset for WordPress using Phalcon.
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.4
- squizlabs/php_codesniffer: ^2.6
- techpivot/phalcon-ci-installer: ~1.0
This package is not auto-updated.
Last update: 2025-01-04 21:19:31 UTC
README
Orchestra is a minimalist object-oriented superset that uses Phalcon as a framework to bootstrap WordPress with an MVC environment and Object-Relational Mapping.
Installation
Orchestra can be installed inside your theme with Composer using this command:
composer require akufen/orchestra v0.1.5
Usage
To bootstrap Orchestra, add this to your functions.php
file.
// Bootstrap Orchestra
require __DIR__ . '/vendor/autoload.php';
add_action('wp', function() {
$app = new \Akufen\Orchestra\Application();
$app->handle();
});
This allows Orchestra to take over WordPress thus making it much faster and object-oriented. Application can be instantiated outside the action in order to register project specific services.
Resources
- Access the API indice here.
- Documentation on how to use the library can be found in the wiki.
- Module skeleton can be found here
License
Please see the license file for more information.