PHPackages                             laravel-admin/site - 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. laravel-admin/site

ActiveLaravel-package

laravel-admin/site
==================

Container for Laravel for collecting data for views

0.1.1(9y ago)164MITPHP

Since Feb 9Pushed 9y ago4 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Site container for your Laravel Project
=======================================

[](#site-container-for-your-laravel-project)

This package creates a singleton into the Service container. In this site container you can put from your whole application items.

At the end the container will be added as a shared view variable.

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

[](#installation)

Install it with composer

```
composer require laravel-admin/site

```

Add the Service Provider to your config/app.php

```
LaravelAdmin\Site\SiteServiceProvider::class,

```

The package has a config, with a basic structure. Publish this config to define your defaults.

```
artisan vendor:publish --tag="site"

```

Usage
-----

[](#usage)

The container is available in the whole application with:

```
app('site')

```

### Add item to the container

[](#add-item-to-the-container)

```
app('site')->set('title', 'My website title');

```

### Add subitem to the container

[](#add-subitem-to-the-container)

The container is compatible with the dotted array notation, like config

```
app('site')->set('seo.title', 'This is my SEO improved title');

```

### Get item

[](#get-item)

```
app('site')->get('title');

```

### Get sub item

[](#get-sub-item)

```
app('site')->get('seo.title');

```

Add your model
--------------

[](#add-your-model)

Imagine you have a model with some default content attributes, like title, description and content. With one command you can fill all items in the container.

```
app('site')->model($post);

```

Views
-----

[](#views)

The container will be available in all your views as the $site variable. Use it as follow:

```
{{ $site->get('title') }}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

3382d ago

### Community

---

Top Contributors

[![marcoboom](https://avatars.githubusercontent.com/u/1839784?v=4)](https://github.com/marcoboom "marcoboom (3 commits)")

### Embed Badge

![Health badge](/badges/laravel-admin-site/health.svg)

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

PHPackages © 2026

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