PHPackages                             offline/laravel-assets-on-demand - 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. offline/laravel-assets-on-demand

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

offline/laravel-assets-on-demand
================================

Asset Manager for Laravel 5

1.0.1(11y ago)2182MITPHPPHP &gt;=5.3.0

Since Feb 16Pushed 11y ago2 watchersCompare

[ Source](https://github.com/OFFLINE-GmbH/laravel-assets-on-demand)[ Packagist](https://packagist.org/packages/offline/laravel-assets-on-demand)[ RSS](/packages/offline-laravel-assets-on-demand/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Asset Manager for Laravel 5
===========================

[](#asset-manager-for-laravel-5)

[![Build Status](https://camo.githubusercontent.com/9a45d3c6c54725765c99fd031e712fad6449a388b75c0d87f032a094e5ea55ba/68747470733a2f2f7472617669732d63692e6f72672f4f46464c494e452d476d62482f6c61726176656c2d6173736574732d6f6e2d64656d616e642e737667)](https://travis-ci.org/OFFLINE-GmbH/laravel-assets-on-demand)

This package makes it easy to add JS files, CSS files and HTML imports to your template.

Install it
----------

[](#install-it)

To install this package include it in your `composer.json` and run `composer update`:

```
"require": {
   "offline/laravel-assets-on-demand": "1.0.0"
}

```

Add the Service Provider to the `provider` array in your `config/app.php`

```
'Offline\Asset\AssetServiceProvider'

```

Add an alias for the facade to your `config/app.php`

```
'Asset'  => 'Offline\Asset\Facades\Asset',

```

Use it
------

[](#use-it)

### General

[](#general)

Include an JS asset

```
Asset::addJs('build/js/app.js');

```

Include an CSS asset

```
Asset::addCss('build/css/app.css');

```

### Priorities

[](#priorities)

Assets are sorted by priority (ASC). Define the priority as integer via the second argmuent.

```
Asset::addCss('vendor/css/grid.css', -0);           // Is included 1st
Asset::addCss('build/css/app.css'  ,  0);           // Is included 2nd
Asset::addCss('build/css/app-overwrites.css', 10);  // Is included 3rd

```

### Positions

[](#positions)

To split your assets into groups, use the third parameter. Default is `head`.

```
Asset::addJs('vendor/jquery/jquery.js');
Asset::addJs('build/js/app.js', 0, 'footer');

```

Add your assets to your template
--------------------------------

[](#add-your-assets-to-your-template)

In your template, include the assets via

```
{!! Asset::all() !!}  // Includes everything
{!! Asset::js()  !!}  // Includes js files only
{!! Asset::css() !!}  // Includes css files only

{!! Asset::js('footer') !!}  // Includes js files with position `footer`

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

4103d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8600029?v=4)[Tobias Kündig](/maintainers/tobias-kuendig)[@tobias-kuendig](https://github.com/tobias-kuendig)

---

Tags

laravellaravel 5assetson-demand

### Embed Badge

![Health badge](/badges/offline-laravel-assets-on-demand/health.svg)

```
[![Health](https://phpackages.com/badges/offline-laravel-assets-on-demand/health.svg)](https://phpackages.com/packages/offline-laravel-assets-on-demand)
```

###  Alternatives

[jasonlewis/resource-watcher

Simple PHP resource watcher library.

221145.8k14](/packages/jasonlewis-resource-watcher)[leantony/laravel-grid

A grid view for laravel, inspired by the yii2 grid widget

9060.2k](/packages/leantony-laravel-grid)[danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

42101.1k](/packages/danielme85-laravel-cconverter)[efficiently/larasset

Larasset is a library for Laravel 5 which manage assets in an easy way.

684.8k](/packages/efficiently-larasset)[latrell/geohash

This package geohash for Laravel 5 support.

1128.3k](/packages/latrell-geohash)[latrell/qqwry

纯真 IP 库 Laravel 版 。

274.7k](/packages/latrell-qqwry)

PHPackages © 2026

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