PHPackages                             ldrahnik/theme-keeper - 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. ldrahnik/theme-keeper

Abandoned → [kappa/themes-manager](/?search=kappa%2Fthemes-manager)Library[Utility &amp; Helpers](/categories/utility)

ldrahnik/theme-keeper
=====================

Keeper of themes.

v1.1.1(11y ago)015BSD-3-ClausePHPPHP &gt;= 5.4

Since Mar 29Pushed 8y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

### Strongly recommend use [Kappa/ThemesManager](https://github.com/Kappa-org/ThemesManager).

[](#strongly-recommend-use-kappathemesmanager)

If you use `Modules` structure [Kappa/ThemesManager](https://github.com/Kappa-org/ThemesManager) is more effective if not that is still better. Forgot on this package it was just attempt. Is deprecated and will not be more developed.

ldrahnik/theme-keeper
=====================

[](#ldrahniktheme-keeper)

[![Build Status](https://camo.githubusercontent.com/9e802d7dc5dade8ea4cf61effc717c7e8eb9f9a11fe3ded011c2f1c981cba93c/68747470733a2f2f7472617669732d63692e6f72672f6c647261686e696b2f7468656d652d6b65657065722e737667)](https://travis-ci.org/ldrahnik/theme-keeper)[![Latest stable](https://camo.githubusercontent.com/0d5c9676795dd29ce4a9ccb4e7207ce5ba7e32a5b0dc2c3c2251523a213b9fbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c647261686e696b2f7468656d652d6b65657065722e737667)](https://packagist.org/packages/ldrahnik/theme-keeper)[![Downloads total](https://camo.githubusercontent.com/0c56840fa2f5a54801850bb805d8e5285d64c858d6b025c8d4799c91982c10d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c647261686e696b2f7468656d652d6b65657065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ldrahnik/theme-keeper)

Keeper of app themes.

Requirements
------------

[](#requirements)

ldrahnik/theme-keeper requires PHP 5.4 or higher.

- [Nette Framework](https://github.com/nette/nette)
- [view-keeper](https://github.com/ldrahnik/view-keeper)

Installation
------------

[](#installation)

Install theme keeper to your project using [Composer](http://getcomposer.org/):

```
$ composer require ldrahnik/theme-keeper
```

Usage
-----

[](#usage)

Register extension in config file

```
extensions:
	themes: ThemeKeeper\DI\ThemeKeeperExtension
```

Example
-------

[](#example)

```
themes:
	default:
		themeDir: %themesDir%/
		assetsDir: /assets
		views:
			controls: /controls//
			presenters: /presenters//
			layouts: /@
```

```
	/**
	* @var \ThemeKeeper\ThemeKeeper
	* @inject
	*/
	private $themes;

	public function __construct(ThemeKeeper\ThemeKeeper $themes)
    {
		$this->themes = $themes;
    }

    public function render()
    {
    	$this->template->setFile($this->themes->getView($this->name, 'controls'));
		$this->template->render();
		// you can cast getView without getTheme('default') because default name is automatically default
		// theme for short use as that, if is not set up name 'default', is choosen first theme in order
    }
```

Is able to set up path via these patterns (don't count patterns through view-keeper - substitution is done successively)

```

```

Summary
-------

[](#summary)

- Template-keeper uses View-keeper but view-keeper as extension have still good use, for example Mail templates are the same for entire app.
- Crossing from small app with [view-keeper](https://github.com/ldrahnik/view-keeper) to something bigger is not hard because is possible to let code as it's, just use another service.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

4061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61ee1ce0e850961847ab4c4356bf0506d987f9beaa04da675aa9c27ae873d254?d=identicon)[ldrahnik](/maintainers/ldrahnik)

---

Top Contributors

[![ldrahnik](https://avatars.githubusercontent.com/u/3233644?v=4)](https://github.com/ldrahnik "ldrahnik (2 commits)")

---

Tags

deprecatednettepackagephp

### Embed Badge

![Health badge](/badges/ldrahnik-theme-keeper/health.svg)

```
[![Health](https://phpackages.com/badges/ldrahnik-theme-keeper/health.svg)](https://phpackages.com/packages/ldrahnik-theme-keeper)
```

###  Alternatives

[contributte/di

Extra contrib to nette/di

465.8M18](/packages/contributte-di)[contributte/event-dispatcher

Best event dispatcher / event manager / event emitter for Nette Framework

292.4M19](/packages/contributte-event-dispatcher)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)[radekdostal/nette-datetimepicker

DatePicker and DateTimePicker input controls for Nette Framework

13272.2k3](/packages/radekdostal-nette-datetimepicker)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)[bileto/cronner

Simple tool which helps with maintenance of cron tasks.

752.1k](/packages/bileto-cronner)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
