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

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

zeroc0d3lab/assets
==================

Laravel assets management

1.0(6y ago)13MITPHPPHP ^7.1.3CI failing

Since Jan 19Pushed 6y ago3 watchersCompare

[ Source](https://github.com/zeroc0d3lab/assets)[ Packagist](https://packagist.org/packages/zeroc0d3lab/assets)[ Docs](https://zeroc0d3lab.com)[ RSS](/packages/zeroc0d3lab-assets/feed)WikiDiscussions master Synced 1w ago

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

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

[](#laravel-assets-management)

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

[](#installation)

```
composer require zeroc0d3lab/assets
```

For version &lt;= 5.4:

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

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

And add to `aliases` section:

```
// config/app.php
'aliases' => [
    ...
    'Assets' => Zeroc0d3lab\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="Zeroc0d3lab\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
```

License
-------

[](#license)

[MIT](LICENSE) © ZeroC0D3 Team

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

2311d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28845551?v=4)[ZeroC0D3 Lab (@zeroc0d3lab)](/maintainers/zeroc0d3lab)[@zeroc0d3lab](https://github.com/zeroc0d3lab)

---

Top Contributors

[![zeroc0d3](https://avatars.githubusercontent.com/u/18413459?v=4)](https://github.com/zeroc0d3 "zeroc0d3 (1 commits)")

---

Tags

zeroc0d3labzeroc0d3lab cmszeroc0d3lab platformzeroc0d3lab assets

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/zeroc0d3lab-assets/health.svg)](https://phpackages.com/packages/zeroc0d3lab-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)
