dynamis / framework
This package is abandoned and no longer maintained.
No replacement package was suggested.
Dynamis is a lightweight component based PHP framework that integrates a modern workflow, through Tekton, into Wordpress.
1.0.11
2018-10-30 11:33 UTC
Requires
- php: >=7.0.0
- composer/installers: ~1.0
- illuminate/contracts: ~5.4.0
- illuminate/view: ~5.4.0
- intervention/image: ^2.4.1
- nsrosenqvist/blade-compiler: ^1.3.0
- rarst/wps: ^1.1
- tekton/assets: ^2.0.2
- tekton/components: ^1.0.0
- tekton/framework: ^2.0.0
- tekton/session: ^2.0.0
- tekton/support: ^2.1.0
README
Dynamis is a lightweight component base PHP framework that integrates a modern development workflow, 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
// Not required but used by Tekton date helpers define('DATE_FORMAT', 'M j, Y'); /* ------------------------------ */ // Autoload classes require_once __DIR__ . '/vendor/autoload.php'; // Create framework $framework = \Dynamis\Framework::getInstance(); // Configure environment if ($stage = getenv('APP_STAGE')) { $framework->setEnvironment($stage); } else { if (defined('WP_DEBUG') && WP_DEBUG) { $framework->setEnvironment('development'); } else { $framework->setEnvironment('production'); } } // Initialize $framework->init();
All configuration files will be loaded from [theme-path]/config
but it can and should be be manually overridden to avoid having the config in a public directory:
$framework->overridePath('config', 'path/to/theme/config')
Documentation
The documentation and tutorials for the framework can be found here.
License
MIT