PHPackages                             bigecko/laravel-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. bigecko/laravel-theme

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

bigecko/laravel-theme
=====================

Simple theme manager for Laravel 4.

336.9k↓50%6[2 issues](https://github.com/harryxu/laravel-theme/issues)PHP

Since May 29Pushed 11y ago6 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Simple theme support for Laravel 4
==================================

[](#simple-theme-support-for-laravel-4)

Inspired by [lightgear/theme](https://github.com/lightgear/theme), but not depend on specific asset manager.

Install
-------

[](#install)

Composer require:

```
"bigecko/laravel-theme": "dev-master"

```

Service provider:

```
'Bigecko\LaravelTheme\LaravelThemeServiceProvider',

```

Alias:

```
'Theme' => 'Bigecko\LaravelTheme\Facade',

```

Usage
-----

[](#usage)

### Structure

[](#structure)

```
├── public/
    └── themes/
        ├── mytheme/
        |   ├── js/
        |   ├── css/
        |   └── views/
        |
        └── anothertheme/

```

Create a new folder `public/themes`.

Create a folder in `themes` use your theme name, like `mytheme`.

Put your theme templates file to `mytheme/views`.

### init theme

[](#init-theme)

```
Theme::init('mytheme');
```

### custom path

[](#custom-path)

```
Theme::init('mytheme', array(
    'public_dirname' => 'allthemes',    // Base dirname for contain all themes, relative to public path.
    'views_path' => app_path('views'),  // Change the path to contain theme templates.
));
```

Once you change the views\_path, the sub dir `views` for theme is not needed,
just create your theme folder in views\_path, and put templates in it.
like: `app/views/mytheme/hello.blade.php`.

### Code example

[](#code-example)

```
View::make('home');  // First find in 'public/themes/mytheme/views/'.
                     // If file not exist, will use default location 'app/views/'.

Theme::asset('js/a.js');  // 'http://domain/themes/mytheme/js/a.js'

Theme::publicPath('js/jquery.js')  // /path/to/project/public/themes/mytheme/js/jquery.js

Theme::name(); // Get current theme name.
```

Also support package templates overriding, just put package templates to your theme views folder.

Why use this?
-------------

[](#why-use-this)

Simple:

- Dot not need change code to render template, still `View::make`.
- No asset management or other dependencies.
- No new config file.
- Just few lines of code, easy to read.
- Only for theme, no more other responsibilities.

TODO
----

[](#todo)

- Add unit testing.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ef7fc36a54fc8707848d10e43a98966a544b36f20bfd31ef618aaadbce8676c?d=identicon)[harryxu](/maintainers/harryxu)

---

Top Contributors

[![harryxu](https://avatars.githubusercontent.com/u/9913?v=4)](https://github.com/harryxu "harryxu (30 commits)")

### Embed Badge

![Health badge](/badges/bigecko-laravel-theme/health.svg)

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

###  Alternatives

[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27262.8k2](/packages/rtlopez-decimal)[cmixin/enhanced-period

Carbon mixin to convert `Carbon\\CarbonPeriod` to `Spatie\\Period\\Period` and vice versa

1963.2k2](/packages/cmixin-enhanced-period)[nextgen-tech/gs1-decoder

1024.8k](/packages/nextgen-tech-gs1-decoder)

PHPackages © 2026

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