PHPackages                             rmasters/lasset - 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. rmasters/lasset

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

rmasters/lasset
===============

15PHP

Since Jan 24Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

lasset: asset-linker
====================

[](#lasset-asset-linker)

[![Build Status](https://camo.githubusercontent.com/c6328353f2456daf5fa3dd45c37e284c7002cbaa0cc46a507ab9d44b94002db2/68747470733a2f2f7472617669732d63692e6f72672f726d6173746572732f6c61737365742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/rmasters/lasset) [![Latest Stable Version](https://camo.githubusercontent.com/750b6cdfb961e22b34d826c957b38fbbc5b7042c12da5fdab5545a337957ee57/68747470733a2f2f706f7365722e707567782e6f72672f726d6173746572732f6c61737365742f76657273696f6e2e706e67)](https://packagist.org/packages/rmasters/lasset) [![License](https://camo.githubusercontent.com/d98e53bf775d2fa8e47e3023d142dc715f0b22477f688ab4423af7c503ae9859/68747470733a2f2f706f7365722e707567782e6f72672f726d6173746572732f6c61737365742f6c6963656e73652e706e67)](https://packagist.org/packages/rmasters/lasset) [![Coverage Status](https://camo.githubusercontent.com/0db9abd87c8b21a779ef47d457031867e4f4f2b5fa69e728fbc723ceda8ce8ae/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f726d6173746572732f6c61737365742f62616467652e706e67)](https://coveralls.io/r/rmasters/lasset) [![Dependency Status](https://camo.githubusercontent.com/af9a7cf21260181518d5c7e3fe7e23499792674f388c12a6d015372d52c1cb6f/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532653235313232656331333735333138393030303030322f62616467652e706e67)](https://www.versioneye.com/user/projects/52e25122ec13753189000002)

Providers helpers that make linking to frontend assets easy, based on your current environment.

This package is not interested in any compilation steps, pre-processing, minification, etc. Use grunt, gulp or Assetic for that.

Plan
----

[](#plan)

Aims to provide configurable links for assets that are:

- Locally hosted (e.g. `/public/assets`)
- Hosted on a different domain (e.g. `http://static.example.com/`)
- Presets for CDN hosting - S3, Akamai, Cloudflare, etc.

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

[](#installation)

Install using Composer: `composer require rmasters/lasset:dev-master`

> This library uses the new PSR-4 autoloader. You might need to update composer itself to use this - `composer self-update`

Framework integrations
----------------------

[](#framework-integrations)

### Standalone

[](#standalone)

1. Instantiate a manager,
2. Configure, with [an array](src/config/config.php) or by adding providers,
3. Set the default environment,
4. Call the `url()`, function.

Usage:

```
use Lasset\Manager;

$manager = new Manager;
$manager->configure(['environments' => [...]]);
$manager->addProvider('testing', new HostProvider([...]));

$manager->setDefault(APP_ENV);

echo $manager->url('bootstrap/dist/css/bootstrap.min.css');

// Or to get a specific environment's url
echo $manager->getProvider('testing')->url('jquery/jquery.min.js');

```

### Laravel 4

[](#laravel-4)

Bundled in this framework is a ServiceProvider and Facade for integration into Laravel 4. This adds the following functionality:

- A single Manager instance created under the `lasset.manager` key
- Facade wraps around the Manager instance
- Configurable by placing a file in `app/config/packages/rmasters/lasset/config.php`
- If it exists in the Manager (after loading configuration), the current Laravel environment (the result of `App::env()`) will be set as the default Lasset environment.

To enable these, simply register the service provider and optionally alias the facade in `app/config/app.php`:

```
'providers' => array(
    // ...
    'Lasset\Laravel\LassetServiceProvider',
),

'aliases' => array(
    'Lasset' => 'Lasset\Laravel\Facades\Lasset',
),

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/32d44b8b36e16d8e06b489556da46a1e839726b0d6003fcd2642a3c94c8069f7?d=identicon)[rmasters](/maintainers/rmasters)

---

Top Contributors

[![rmasters](https://avatars.githubusercontent.com/u/34284?v=4)](https://github.com/rmasters "rmasters (10 commits)")

### Embed Badge

![Health badge](/badges/rmasters-lasset/health.svg)

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

###  Alternatives

[mediconesystems/livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS

1.2k711.3k8](/packages/mediconesystems-livewire-datatables)[dusank/knapsack

Collection library for PHP

5351.0M25](/packages/dusank-knapsack)[log1x/poet

Configuration-based post type, taxonomy, editor color palette, block category, and block registration for Sage 10.

218280.1k1](/packages/log1x-poet)[freemius/wordpress-sdk

Freemius WordPress SDK

303101.4k4](/packages/freemius-wordpress-sdk)[prestashop/psgdpr

PrestaShop module psgdpr

326.3M2](/packages/prestashop-psgdpr)[tarfin-labs/laravel-spatial

Laravel package to work with geospatial data types and functions.

7285.9k](/packages/tarfin-labs-laravel-spatial)

PHPackages © 2026

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