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

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

hungcrush/assets
================

Laravel assets management

1.0.16(5y ago)07MITPHPPHP ^7.1.3

Since Oct 23Pushed 5y agoCompare

[ Source](https://github.com/hungcrush/laravel-assets)[ Packagist](https://packagist.org/packages/hungcrush/assets)[ Docs](https://botble.com)[ RSS](/packages/hungcrush-assets/feed)WikiDiscussions master Synced today

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

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

[](#laravel-assets-management)

[![Latest Version](https://camo.githubusercontent.com/4eae00ef0d0bc02b9d8e1ce8d5aa0660b6b121b67406ebf76e33e78ad8d081f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f626f74626c652f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://github.com/botble/laravel-assets/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/70b0286c5081cdb3a9fe6910dbf9e3fed9c96e0ae96ead722bb1f197fced1b2b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626f74626c652f6c61726176656c2d6173736574732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/botble/laravel-assets)[![Quality Score](https://camo.githubusercontent.com/088f2ce119dfe511afa41a9d9337c20a9904262d51b373f0c2a6a4fdd1e6f05c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f626f74626c652f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/botble/laravel-assets)[![StyleCI](https://camo.githubusercontent.com/75b930508a902a2ffdc1cb3984174e15f878e32c8e6140d53f58cb6885f9ca16/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135343235303032302f736869656c64)](https://styleci.io/repos/154250020)[![Total Downloads](https://camo.githubusercontent.com/c30c09542720abb481f7960a3fedd12e2aed2841776efc045e25f24c68ce3a0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626f74626c652f6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/botble/assets)[![Maintainability](https://camo.githubusercontent.com/0c70728cb1cc125e8319e6446b2efb58c648ae9e36953470ce29debc5c261c0a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61366534363132333037653362336266383235322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/botble/laravel-assets/maintainability)

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

[](#installation)

```
composer require botble/assets
```

For version &lt;= 5.4:

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

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

And add to `aliases` section:

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

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 96.3% 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 ~43 days

Recently: every ~77 days

Total

17

Last Release

2115d ago

PHP version history (2 changes)1.0.3PHP ^7.0

1.0.9PHP ^7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2025514?v=4)[hungtv](/maintainers/hungtv)[@hungtv](https://github.com/hungtv)

---

Top Contributors

[![sangnguyenplus](https://avatars.githubusercontent.com/u/6972407?v=4)](https://github.com/sangnguyenplus "sangnguyenplus (52 commits)")[![dinhquochan](https://avatars.githubusercontent.com/u/9979458?v=4)](https://github.com/dinhquochan "dinhquochan (1 commits)")[![harryoppa](https://avatars.githubusercontent.com/u/86553305?v=4)](https://github.com/harryoppa "harryoppa (1 commits)")

---

Tags

botblebotble cmsbotble platformbotble assets

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[botble/assets

Laravel assets management

46290.7k2](/packages/botble-assets)[botble/git-commit-checker

Check coding standard &amp; code syntax with Git pre-commit hook.

48198.0k1](/packages/botble-git-commit-checker)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.6k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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