PHPackages                             matycz/lemo-theme - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. matycz/lemo-theme

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

matycz/lemo-theme
=================

4.0.1(4y ago)05.2kBSD-3-ClausePHPPHP ^7.4 || ^8.0

Since Jan 12Pushed 4y ago2 watchersCompare

[ Source](https://github.com/MatyCZ/php-lemo-theme)[ Packagist](https://packagist.org/packages/matycz/lemo-theme)[ Docs](https://github.com/MatyCZ/php-lemo-theme)[ RSS](/packages/matycz-lemo-theme/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (15)Used By (0)

Lemo\\Theme
===========

[](#lemotheme)

Lemo\\Theme is a Zend Framework 2 module that allows you to switch between various themes. It allows you to create various themes and then switch between them. Themes can be installed in multiple folders.

The current theme can be defined in `global.ini` or `local.ini` for whole application. For the module you can set default theme in `module.config.php`. You can switch theme from any place in application by `ServiceManager` from instance of `ThemeManager` too.

### Installation

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

1. `cd my/project/directory`
2. Create a `composer.json` file with following contents:

    ```
    {
        "require": {
            "matycz/lemo-theme": ">=1.0"
        }
    }
    ```
3. Run `php composer.phar install`
4. Open `my/project/directory/config/application.config.php` and add module name `Lemo\Theme` into key `modules` like below:

    ```
    return array(
        ...
        'modules' => array(
           ...
           'Lemo\Theme'
           ...
        ),
        ...
    );
    ```

Installation without composer is not officially supported, and requires you to install and autoload the dependencies specified in the `composer.json`.

### Documentation

[](#documentation)

In configuration files you can set the default theme that should be used, the list of directories that should be used for selecting the current theme as listed bellow:

```
'theme_manager' => array(
    'theme' => 'default',
    'theme_paths' => array(
        './theme/'
    ),
),

```

To get a basic theme up and running you can just copy the `default` one from `examples/theme` folder into the `theme` folder in application root or create a new one by following the tutorial bellow. Make sure that the `theme` option is set the the name of your new theme.

### Examples

[](#examples)

```
