PHPackages                             realdriss/assets - 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. realdriss/assets

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

realdriss/assets
================

Laravel assets management

v1.0.0(3y ago)011MITPHPPHP ^7.1.3|^8.0

Since Apr 16Pushed 3y agoCompare

[ Source](https://github.com/realdriss/assets)[ Packagist](https://packagist.org/packages/realdriss/assets)[ Docs](https://RealDriss.com)[ RSS](/packages/realdriss-assets/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Assets management
=========================

[](#laravel-assets-management)

[![Latest Version](https://camo.githubusercontent.com/d4a3fdab915e8a96237e71a964c0a5e94de8e2ba868409ca8a170ee1b6c45b8b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5265616c44726973732f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://github.com/RealDriss/laravel-assets/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0c75671e63e6776b9eb1acb263952108dcaf5a5254733852143ad64c3b428112/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5265616c44726973732f6c61726176656c2d6173736574732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/RealDriss/laravel-assets)[![Quality Score](https://camo.githubusercontent.com/72dce8602ebc9319e4a566c8ac3256106fde6507094b930662ab29d4fbd0814b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5265616c44726973732f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/RealDriss/laravel-assets)[![StyleCI](https://camo.githubusercontent.com/75b930508a902a2ffdc1cb3984174e15f878e32c8e6140d53f58cb6885f9ca16/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135343235303032302f736869656c64)](https://styleci.io/repos/154250020)[![Total Downloads](https://camo.githubusercontent.com/9e581368c511c34d290617d405f71b7fe3508f3cfe31a6029f8c54ee31fa005b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5265616c44726973732f6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/RealDriss/assets)[![Maintainability](https://camo.githubusercontent.com/0c70728cb1cc125e8319e6446b2efb58c648ae9e36953470ce29debc5c261c0a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61366534363132333037653362336266383235322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/RealDriss/laravel-assets/maintainability)

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

[](#installation)

```
composer require realdriss/assets
```

For version &lt;= 5.4:

Add to section `providers` of `config/app.php`:

```
// config/app.php
'providers' => [
    ...
    RealDriss\Assets\Providers\AssetsServiceProvider::class,
];
```

And add to `aliases` section:

```
// config/app.php
'aliases' => [
    ...
    'Assets' => RealDriss\Assets\Facades\AssetsFacade::class,
];
```

All assets resource will be manage in config file so we need to publish config to use.

```
php artisan vendor:publish --provider="RealDriss\Assets\Providers\AssetsServiceProvider" --tag=config
```

Add to your master layout view, in `head` tag:

```
{!! \Assets::renderHeader() !!}
```

and before `body` tag close:

```
{!! \Assets::renderFooter() !!}
```

Methods
-------

[](#methods)

### Add scripts

[](#add-scripts)

```
\Assets::addScripts(['key-of-assets-in-config-file']);
```

Example:

```
\Assets::addScripts(['app', 'bootstrap', 'jquery']);
```

### Add styles

[](#add-styles)

```
\Assets::addStyles(['key-of-assets-in-config-file']);
```

Example:

```
\Assets::addStyles(['bootstrap', 'font-awesome']);
```

### Remove scripts

[](#remove-scripts)

```
\Assets::removeScripts(['key-of-assets-in-config-file']);
```

Example:

```
\Assets::removeScripts(['bootstrap']);
```

### Remove styles

[](#remove-styles)

```
\Assets::removeStyles(['key-of-assets-in-config-file']);
```

Example:

```
\Assets::removeStyles(['font-awesome']);
```

### Others

[](#others)

- Set version for assets. Add to `.env`

```
ASSETS_VERSION=1.0
```

Then all assets will be added `?v=1.0`

- Change to online mode

```
ASSETS_OFFLINE=false
```

Then assets will be loaded from CDN if it's defined in config file.

- To disable versioning:

```
ASSETS_ENABLE_VERSION=false
```

Contributors
------------

[](#contributors)

- [Godwin Waswa](https://github.com/godwnwaswa)

License
-------

[](#license)

[MIT](LICENSE) © Godwin Waswa

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

1124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62d116f36ec25b5c0c8bab76ffbbf9b9462f40296ed5404dfe903fdf8da5a236?d=identicon)[godwnwaswa](/maintainers/godwnwaswa)

---

Top Contributors

[![godwnwaswa](https://avatars.githubusercontent.com/u/109458291?v=4)](https://github.com/godwnwaswa "godwnwaswa (6 commits)")

---

Tags

realdrissrealdriss cmsrealdriss platformRealDriss assets

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/realdriss-assets/health.svg)

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

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

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