PHPackages                             djaney/theming-bundle - 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. djaney/theming-bundle

ActiveSymfony-bundle

djaney/theming-bundle
=====================

A service to that lets you choose the theme bundle to use

0230PHP

Since Jun 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/djaney/theming-bundle)[ Packagist](https://packagist.org/packages/djaney/theming-bundle)[ RSS](/packages/djaney-theming-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Creates a simple theming using a Child Theme and a Base Theme.

If the template name exists in the child, the child bundle template is used.

Else, The base theme will be used.

The Base theme is set in the service.yml while the Child is passed during the service call.

```
src
|-BaseThemeBundle/Resources/views/**.html.twig
|-ChildThemeBundle/Resources/views/**.html.twig

```

A Theme is simply a bundle with views.

Installation
============

[](#installation)

```
In composer.json

"require": {
    "djaney/theming-bundle": "dev-master"
}

```

Usage
=====

[](#usage)

Register the service
--------------------

[](#register-the-service)

Second argument is the name of the base theme

```
services:
    theme:
        class: Djaney\ThemingBundle\ThemeSelector\ThemeSelectorService
        arguments: [ "@twig" , BaseThemeBundle ]

```

Use in Controller
-----------------

[](#use-in-controller)

```
second argument is the theme name. Set as NULL to use base theme.

return $this->get('theme')->template('Default/index.html.twig', 'ChildThemeBundle', $data);

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dfc6b7479514346110765508186828960073077dd49355f3867c3fd7f1f7499?d=identicon)[djaney](/maintainers/djaney)

---

Top Contributors

[![djaney](https://avatars.githubusercontent.com/u/2299010?v=4)](https://github.com/djaney "djaney (5 commits)")[![dmabelin-arcanys](https://avatars.githubusercontent.com/u/166811151?v=4)](https://github.com/dmabelin-arcanys "dmabelin-arcanys (3 commits)")

### Embed Badge

![Health badge](/badges/djaney-theming-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/djaney-theming-bundle/health.svg)](https://phpackages.com/packages/djaney-theming-bundle)
```

PHPackages © 2026

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