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

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

actcmsvn/assets
===============

Laravel assets management

1.1.0(10mo ago)066MITPHPPHP ^7.1.3|^8.0|^8.1|^8.2|^8.3

Since Jul 10Pushed 10mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

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

[](#laravel-assets-management)

[![Latest Version](https://camo.githubusercontent.com/ca4c41f5d912247083008396caf3ed15ffd008ea68b55e7c1e44e58c39dc50e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616374636d73766e2f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/actcmsvn/assets)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/8ca32a6c0cc733d470cc08001a4f05e69790de122f3a860e654f31dbde72d6b2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f616374636d73766e2f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/actcmsvn/laravel-assets)[![StyleCI](https://camo.githubusercontent.com/75b930508a902a2ffdc1cb3984174e15f878e32c8e6140d53f58cb6885f9ca16/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135343235303032302f736869656c64)](https://styleci.io/repos/154250020)[![Total Downloads](https://camo.githubusercontent.com/49d9cfdc5bf712eea674266ded306109917b7ceeb06177c37e90b1e69020fca5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616374636d73766e2f6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/actcmsvn/assets)[![Maintainability](https://camo.githubusercontent.com/0c70728cb1cc125e8319e6446b2efb58c648ae9e36953470ce29debc5c261c0a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61366534363132333037653362336266383235322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/actcmsvn/laravel-assets/maintainability)

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

[](#installation)

```
composer require actcmsvn/assets
```

For version &lt;= 5.4:

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

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

And add to `aliases` section:

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

- [Sang Nguyen](https://github.com/sangnguyenplus)
- [Dinh Quoc Han](https://github.com/dinhquochan)

License
-------

[](#license)

[MIT](LICENSE) © Sang Nguyen

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance54

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~3 days

Total

2

Last Release

307d ago

### Community

Maintainers

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

---

Top Contributors

[![actcmsvn](https://avatars.githubusercontent.com/u/69153463?v=4)](https://github.com/actcmsvn "actcmsvn (7 commits)")

---

Tags

actcmsvnactcmsvn cmsactcmsvn platformactcmsvn assets

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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