PHPackages                             administrcms/asset-manager - 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. administrcms/asset-manager

ActiveLibrary

administrcms/asset-manager
==========================

1.1.4(5y ago)01.1k12MITPHPPHP &gt;=5.5.9

Since Feb 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/administrcms/asset-manager)[ Packagist](https://packagist.org/packages/administrcms/asset-manager)[ RSS](/packages/administrcms-asset-manager/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (2)

Assets manager
==============

[](#assets-manager)

[![Build Status](https://camo.githubusercontent.com/7d303b5bc15ffc51fb55f8fb496529f49c0600b8bef1be62d7c60c380ea392e7/68747470733a2f2f7472617669732d63692e6f72672f61646d696e69737472636d732f61737365742d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/administrcms/asset-manager)[![Code Climate](https://camo.githubusercontent.com/5d20c933d9752eb66381db4a6f7ee587b85aaea344c201cbdbbf4f4610ebc7a4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f61646d696e69737472636d732f61737365742d6d616e616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/administrcms/asset-manager)[![Test Coverage](https://camo.githubusercontent.com/7b7a9fa0bfc3e400470ebceceea5b07ea564b5ec3ced191df7c92dbd7c2f1b55/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f61646d696e69737472636d732f61737365742d6d616e616765722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/administrcms/asset-manager/coverage)

Installation
============

[](#installation)

Using [Composer](https://getcomposer.org/):

```
composer require administrcms/asset-manager

```

Add the service provider:

```
\Administr\Assets\AssetsServiceProvider::class,
```

The Facade:

```
'Asset'    => \Administr\Assets\AssetsFacade::class,
```

Usage
=====

[](#usage)

Base usage
----------

[](#base-usage)

The asset manager works with the Laravel framework. It provides a Facade for easier usage.

You can specify your asset groups by either the `add` method or using the magical method.

```
Asset::add('test.css', 'css');
// is the same as
Asset::addCss('test.css');
```

You can retrieve a group either by the `get` method or the magical equivelent.

```
Asset::get('css');
// is the same as
Asset::getCss();
```

You can also specify a priority for your asset. For example when using the jQuery library, you need to include it before any other library that depends on it.

```
// The sort is from highest to lowest priority. The default priority is 0.
Asset::addJs('jquery.js', 100);
Asset::add('jquery.js', 'js', 100);
```

Shortcuts
---------

[](#shortcuts)

You can define a shortcut, which is a class that defines multiple assets at once. If you are using a js library that needs to include js and css code, you can make it easier.

```
// Create a class that implements the Shortcut contract
class WysiwygShortcut implements Administr\Assets\Contracts\Shortcut {
    public function execute()
    {
        Asset::addJs('tinymce.js');
        Asset::addCss('tinymce.css');
        Asset::addCss('tinymce.theme.css');
    }
}

// Register it with the Asset Manager
Asset::shortcut('wysiwyg', WysiwygShortcut::class);

// And then call it like a method of the Manager
Asset::wysiwyg();
```

It is up to you to decide where to register the shortcuts. A good place would be in a ServiceProvider in you Laravel app.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~436 days

Total

7

Last Release

1855d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/909813?v=4)[Miroslav Vitanov](/maintainers/mirovit)[@mirovit](https://github.com/mirovit)

---

Top Contributors

[![mirovit](https://avatars.githubusercontent.com/u/909813?v=4)](https://github.com/mirovit "mirovit (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/administrcms-asset-manager/health.svg)

```
[![Health](https://phpackages.com/badges/administrcms-asset-manager/health.svg)](https://phpackages.com/packages/administrcms-asset-manager)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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