PHPackages                             kubpro/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. [Templating &amp; Views](/categories/templating)
4. /
5. kubpro/theme

ActiveLibrary[Templating &amp; Views](/categories/templating)

kubpro/theme
============

Laravel multi Themes Package

0.1.0(7y ago)07MITPHPPHP ^7.0.0

Since Feb 13Pushed 7y agoCompare

[ Source](https://github.com/rafoabbas/laravel-theme)[ Packagist](https://packagist.org/packages/kubpro/theme)[ Docs](https://github.com/kubpro/laravel-theme.git)[ RSS](/packages/kubpro-theme/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel Theme
=============

[](#laravel-theme)

To get the latest version of Theme simply require it in your `composer.json` file.

```
"kubpro/theme" : "0.1.0" or composer require kubpro/theme

```

You'll then need to run `composer install` to download it and have the autoloader updated.

Once Theme is installed you need to register the service provider with the application. Open up `config/app.php` and find the `providers` key.

```
'providers' => [

    Kubpro\Theme\Providers\ThemeServiceProvider::class,

]

```

Publish config using artisan CLI.

```
php artisan vendor:publish --provider="Kubpro\Theme\Providers\ThemeServiceProvider"

```

Add to .env file

```
APP_THEME=default

```

---

### Theme has many features to help you get started with Laravel

[](#theme-has-many-features-to-help-you-get-started-with-laravel)

---

```
thview()
```

The thview function retrieves theme's view instance:

```
$data = ['1',2];
return thview('welcome',compact('data'));
```

---

```
thasset()
```

The thasset function generates a URL for an asset using the current scheme of the request (HTTP or HTTPS):

```
{{thasset("style.css")}}
```

---

```
thchange()
```

The thchange function using to change theme from .env:

```
$themename = 'themedemo'; //theme name

$check = thchange($themename); //change function

if($check){
    echo "success";
}else{
    echo "error";
}
```

---

Adding themes Example : config/theme.php

```
'default' => [
        'views' => 'themes.default',
        'assets' => 'themes/default',
    ],

//addnew theme
'newtheme' => [
    'views' => 'themes.newtheme',
    'assets' => 'themes/newtheme',
]
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2694d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66231852?v=4)[raufabbas](/maintainers/raufabbas)[@RaufAbbas](https://github.com/RaufAbbas)

---

Top Contributors

[![rafoabbas](https://avatars.githubusercontent.com/u/32704040?v=4)](https://github.com/rafoabbas "rafoabbas (42 commits)")

---

Tags

packagebladelaravel 5themeassetsviews

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[igaster/laravel-theme

Laravel Themes: Asset &amp; Views folder per theme. Theme inheritance. Blade integration and more...

5151.2M14](/packages/igaster-laravel-theme)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18379.7k9](/packages/technikermathe-blade-lucide-icons)

PHPackages © 2026

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