AistThemes
Zend Framework 2 module that allows developers install & switch between various themes for their projects., (*1)
, (*2)
Features
Requirements
- php >= 5.3.3
- zendframework >= 2.2.6
- composer
- See also the
require
, require-dev
section of composer.json
Installation using Composer
- Open console (command prompt)
- Go to your application's directory.
- Run
composer require aist/aist-themes:dev-master
Configuration
- Enable module in your
application.config.php
file.
<?php
return array(
'modules' => array(
// ...
'AistThemes',
),
// ...
);
Theme Installer
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., (*3)
This Theme Installer for Composer will trigger on the following library types
and provide custom behaviour for those., (*4)
-
aist-theme, install files into /data/themes instead of /vendor
Creating your own themes
In order to tell a theme to use this installer you need to add the following
composer.json, (*5)
{
"name": "aist/theme-$NAME$",
"type": "aist-theme",
"require": {
"aist/aist-themes": "*"
}
}
The type element will instruct Composer to use this Theme Installer., (*6)
Contributing
Pull requests are welcome. Please include tests to prevent regressions whenever
possible., (*7)
TODO
- [ ] update tests
- [x] add travis
- [ ] update composer.json
- [ ] generate documentation