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

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

robytepos/assets
================

Laravel assets management

01PHP

Since Aug 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/robytepos/laravel-assets)[ Packagist](https://packagist.org/packages/robytepos/assets)[ RSS](/packages/robytepos-assets/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-assets-management)

[![Latest Version](https://camo.githubusercontent.com/55f23bcf53101426abe5b5290886ddbe337a3f6ea38744769aeab5e992a43a09/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f726f627974652d706f732f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://github.com/robyte-pos/laravel-assets/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7fde9432c8a9078a204d2e298e2f2430402f98ffd4b7caf94ef9eb9a9a2dbcf7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f726f627974652d706f732f6c61726176656c2d6173736574732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/robyte-pos/laravel-assets)[![Quality Score](https://camo.githubusercontent.com/c21033de85b3fa6afbaa7d0675e30bef02b1264c083a6160e69305652e25d5da/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f726f627974652d706f732f6c61726176656c2d6173736574732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/robyte-pos/laravel-assets)[![StyleCI](https://camo.githubusercontent.com/75b930508a902a2ffdc1cb3984174e15f878e32c8e6140d53f58cb6885f9ca16/68747470733a2f2f7374796c6563692e696f2f7265706f732f3135343235303032302f736869656c64)](https://styleci.io/repos/154250020)[![Total Downloads](https://camo.githubusercontent.com/7ca927cc9a5bb98fdafbc1c269a78f6f8921c7a3f2761e2cd20874f913d2234b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f627974652d706f732f6173736574732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/robyte-pos/assets)[![Maintainability](https://camo.githubusercontent.com/0c70728cb1cc125e8319e6446b2efb58c648ae9e36953470ce29debc5c261c0a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f61366534363132333037653362336266383235322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/robyte-pos/laravel-assets/maintainability)

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

[](#installation)

```
composer require robytepos/assets
```

For version &lt;= 5.4:

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

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

And add to `aliases` section:

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

- [Xalid Balagozov](https://github.com/xalidbalagozov)

License
-------

[](#license)

[MIT](LICENSE) © Xalid Balagozov

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffcedd4fd6aa79f182f345c0790d69dd714d3116e2e6e0db6272f21a47e87630?d=identicon)[XalidBalagozov](/maintainers/XalidBalagozov)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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