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

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

botble/assets
=============

Laravel assets management

1.0.31(2mo ago)47275.1k—7.1%232MITPHPPHP &gt;=7.1.3CI failing

Since Oct 23Pushed 2mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (6)Versions (33)Used By (2)

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)[![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

60

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity48

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~87 days

Recently: every ~155 days

Total

32

Last Release

68d ago

PHP version history (6 changes)1.0.3PHP ^7.0

1.0.9PHP ^7.1.3

1.0.18PHP ^7.1.3|^8.0

1.0.22PHP ^7.1.3|^8.0|^8.1

1.0.27PHP ^7.1.3|^8.0|^8.1|^8.2|^8.3

1.0.31PHP &gt;=7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ba66a7d891368078e1a24e67c69dbfce6475e0fe23d3442168324fa5468dabb?d=identicon)[sangnguyenplus](/maintainers/sangnguyenplus)

---

Top Contributors

[![sangnguyenplus](https://avatars.githubusercontent.com/u/6972407?v=4)](https://github.com/sangnguyenplus "sangnguyenplus (72 commits)")[![dinhquochan](https://avatars.githubusercontent.com/u/9979458?v=4)](https://github.com/dinhquochan "dinhquochan (1 commits)")[![hungcrush](https://avatars.githubusercontent.com/u/8098916?v=4)](https://github.com/hungcrush "hungcrush (1 commits)")[![nivianh](https://avatars.githubusercontent.com/u/23395607?v=4)](https://github.com/nivianh "nivianh (1 commits)")[![vigstudio](https://avatars.githubusercontent.com/u/34742453?v=4)](https://github.com/vigstudio "vigstudio (1 commits)")

---

Tags

assets-managementbotblebotblecmslaravellaravel-5-packagebotblebotble cmsbotble platformbotble assets

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wireui/wireui

TallStack components

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

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[botble/git-commit-checker

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

47186.4k1](/packages/botble-git-commit-checker)[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)
