Zend Framework 2 module that allows developers install & switch between various themes for their projects.
- Theme Installer
- php >= 5.3.3
- zendframework >= 2.2.6
- composer
- See also the
require,require-devsection of composer.json
Installation using Composer
- Open console (command prompt)
- Go to your application's directory.
- Run
composer require aist/aist-themes:dev-master
- Enable module in your
application.config.phpfile.
<?php
return array(
'modules' => array(
// ...
'AistThemes',
),
// ...
);AistThemes relies on specific directory locations for templates and plugins. By default Composer is unable to install in an other directory than /vendor except when using a Custom Installer.
This Theme Installer for Composer will trigger on the following library types and provide custom behaviour for those.
- aist-theme, install files into /data/themes instead of /vendor
In order to tell a theme to use this installer you need to add the following composer.json
{
"name": "aist/theme-$NAME$",
"type": "aist-theme",
"require": {
"aist/aist-themes": "*"
}
}
The type element will instruct Composer to use this Theme Installer.
Pull requests are welcome. Please include tests to prevent regressions whenever possible.
- update tests
- add travis
- update composer.json
- generate documentation



