PHPackages                             italiavainrete/multitenancy-utils-laravel - 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. italiavainrete/multitenancy-utils-laravel

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

italiavainrete/multitenancy-utils-laravel
=========================================

A set of utilities for IVR multitenancy system

v0.3.18(1mo ago)0135[3 PRs](https://github.com/italiavainrete/multitenancy-utils-laravel/pulls)MITPHPPHP ^8.2CI passing

Since Jul 4Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/italiavainrete/multitenancy-utils-laravel)[ Packagist](https://packagist.org/packages/italiavainrete/multitenancy-utils-laravel)[ Docs](https://github.com/italiavainrete/multitenancy-utils-laravel)[ GitHub Sponsors](https://github.com/italiavainrete)[ RSS](/packages/italiavainrete-multitenancy-utils-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (20)Versions (35)Used By (0)

MultiTenancy Utils for Laravel
==============================

[](#multitenancy-utils-for-laravel)

`laravel/multitenancy-utils-laravel` is a package designed to simplify multi-tenancy management in Laravel applications. It provides tools to handle tenant-specific configurations, assets, branding, and more.

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

[](#installation)

To install the package, use composer:

```
composer require laravel/multitenancy-utils-laravel
```

Configuration
-------------

[](#configuration)

Most of the options can be customized using `.env` variabiles, however you can publish the config file with:

```
php artisan vendor:publish --tag="multitenancy-utils-laravel-config"
```

This is the contents of the published config file `config/multitenancy-utils-laravel.php`, modify it to suit your needs:

```
return [
    'tenant_key' => env('TENANT_KEY','italia-va-in-rete'),
    'crm-api' => [
        'base_url' => env('CRM_API_BASE_URL', 'https://api.crm.italiavainrete.it')
    ],
    'cache' => [
        'ttl' => env('CACHE_TTL', 600),
    ],
    'colors' => [
        'lighten_percentage' => env('COLORS_LIGHTEN_PERCENTAGE', 40),
        'darken_percentage' => env('COLORS_DARKENEN_PERCENTAGE', 15),
    ],
    'cdn' => env('CDN_BASE_URL', 'https://d3vk0yr71svhiq.cloudfront.net/ivr'),
];
```

Usage
-----

[](#usage)

### Controllers

[](#controllers)

Two routes are provided for serving tenant-specific web manifest and browser config XML:

```
Route::get('/site.webmanifest', WebManifestController::class)->name('web-manifest');
Route::get('/browserconfig.xml', BrowserConfigXmlController::class)->name('browser-config-xml');
```

### Getting Started

[](#getting-started)

The package aims to simplify rendering of a series of common tags to define the style of a page using data from the tenant's brand

View Components
---------------

[](#view-components)

You can use the following view components provided by the package:

- `x-multi-tenancy::brand-favicons` - Renders tenant favicon meta tags.
- `x-multi-tenancy::brand-style` - Renders styles for tenant.
- `x-multi-tenancy::brand-logo` - Displays tenant logo.

Full Usage Example
------------------

[](#full-usage-example)

Here's a full example of a Blade template using the components and shared brand data:

```
>

    {{ $brand->name }} Marketplace

        Hello World
        Success!
        Danger!
        Warning!
        Info!

```

Testing
-------

[](#testing)

```
composer test
```

- [Salvo Bonanno](https://github.com/salvobee)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~21 days

Recently: every ~43 days

Total

31

Last Release

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/51fd98be1c1dede9cc13dbdff17b1b856dd17ee5e087b61fb74ba1656670678f?d=identicon)[blabs-dev](/maintainers/blabs-dev)

---

Top Contributors

[![salvobee](https://avatars.githubusercontent.com/u/19645064?v=4)](https://github.com/salvobee "salvobee (69 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![blabs-dev](https://avatars.githubusercontent.com/u/75724335?v=4)](https://github.com/blabs-dev "blabs-dev (1 commits)")

---

Tags

laravelItalia va in Retemultitenancy-utils-laravel

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/italiavainrete-multitenancy-utils-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/italiavainrete-multitenancy-utils-laravel/health.svg)](https://phpackages.com/packages/italiavainrete-multitenancy-utils-laravel)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

188.5k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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