aist / aist-themes
Zend Framework 2 module that allows developers install & switch between various themes for their projects.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:composer-plugin
Requires
- php: >=5.3.3
- composer-plugin-api: 1.0.0
- zendframework/zendframework: >=2.2.6
Requires (Dev)
- phpunit/phpunit: >=4.1.0
- zendframework/zend-developer-tools: dev-master
- zendframework/zenddiagnostics: >=1.0.0
- zendframework/zftool: dev-master
This package is not auto-updated.
Last update: 2024-12-21 17:41:06 UTC
README
Zend Framework 2 module that allows developers install & switch between various themes for their projects.
Features
- Theme Installer
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.
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
Creating your own themes
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.
Contributing
Pull requests are welcome. Please include tests to prevent regressions whenever possible.
TODO
- update tests
- add travis
- update composer.json
- generate documentation