PHPackages                             brenelz/laravel-childthemes - 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. brenelz/laravel-childthemes

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

brenelz/laravel-childthemes
===========================

This package allows you to create multiple themes and only overwrite the default when you need to instead of copying entire theme.

49PHP

Since Dec 14Pushed 11y agoCompare

[ Source](https://github.com/brenelz/laravel-childthemes)[ Packagist](https://packagist.org/packages/brenelz/laravel-childthemes)[ RSS](/packages/brenelz-laravel-childthemes/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Child Themes
--------------------

[](#laravel-child-themes)

Create multiple themes in Laravel and only overwrite the default when you need to instead of copying the entire theme.

For example you could have the following directory structure.

- views/DefaultTheme/
    - master.blade.php
    - index.blade.php
    - contact.blade.php
- views/HolidayTheme/
    - master.blade.php

In this case if you have the DefaultTheme as the default, and the HolidayTheme as the active - it will render the HolidayTheme master page but keep the index and contact views untouched from the DefaultTheme.

**Please note that child themes are not limited to blade. They are bound to the Laravel ViewFactory so Twig and other template engines will work as well.**

#### ThemeHelper Facade

[](#themehelper-facade)

Recently I have added a ThemeHelper facade and changed up the config file. In some cases you don't want to copy the entire blade file but instead just want to swap out strings based on which theme is active.

To use this new feature just put something like the following in your view files.

```
{{ThemeHelper::get('siteName')}}

```

It will then output whatever site name you have defined in your config for the active theme.

#### Installation

[](#installation)

Add the following to the require section of your `composer.json` file and run an update:

```
"brenelz/laravel-childthemes": "dev-master",

```

The final step is adding the service provider to your Laravel application's app.php:

```
'Brenelz\Childthemes\ChildthemesServiceProvider',

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/67dc38a59c890af2e47d642732ec77bf4aa693dcc13c6001971443480236c3dc?d=identicon)[brenelz](/maintainers/brenelz)

### Embed Badge

![Health badge](/badges/brenelz-laravel-childthemes/health.svg)

```
[![Health](https://phpackages.com/badges/brenelz-laravel-childthemes/health.svg)](https://phpackages.com/packages/brenelz-laravel-childthemes)
```

PHPackages © 2026

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