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

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

shnhrrsn/laravel-assets
=======================

Asset management for Laravel.

v2.0.3(9y ago)61.9k11MITPHPPHP &gt;=5.4.0

Since Feb 4Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (15)Used By (1)

Laravel Assets
==============

[](#laravel-assets)

This package provides a simpler alternative to using gulp/elixir in L5. It’s designed to get out of your way and allow you to work without worrying about running a watch command and waiting for files to compile. All you’ll need to do is store your assets in /resources/assets, and the package will automatically detect changes and compile (and cache) on page load.

In production environments, you should run the `assets:publish` command to precompile all assets and move them into the public directory where your web server can more effeciently serve them.

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

[](#installation)

##### Add the package to composer

[](#add-the-package-to-composer)

```
composer require "shnhrrsn/laravel-assets" "dev-master"
```

##### Add the following line to your service providers in `config/app.php`

[](#add-the-following-line-to-your-service-providers-in-configappphp)

```
		Assets\ServiceProvider::class,
```

##### *(Optional)* Update your `.gitignore` files to ignore published assets

[](#optional-update-your-gitignore-files-to-ignore-published-assets)

All of your assets should live in `/resources/assets`, so it’s a good idea to update your `.gitignore` to make sure published assets don’t accidentally make their way into git.

```
echo "published_assets.php" >> config/.gitignore
echo "css/" >> public/.gitignore
echo "img/" >> public/.gitignore
echo "js/" >> public/.gitignore
echo "font/" >> public/.gitignore
```

##### *(Optional)* Publish config

[](#optional-publish-config)

If you want to override the default config settings for Assets, you should publish the config file:

```
php artisan vendor:publish
```

##### Install toolchain

[](#install-toolchain)

To quickly install the necessary tools for Assets to compile, use the built in `install-toolchain` command:

```
php artisan assets:install-toolchain
```

Usage
-----

[](#usage)

##### Include your assets in blade via the `asset_path()` function

[](#include-your-assets-in-blade-via-the-asset_path-function)

`asset_path()` will look for your files in `/resources/assets`, so the file referenced in the snippet below should be in `/resources/assets/scss/site.scss`.

```

```

Now refresh the page to make sure your file was included and properly compiled.

##### On deploy, run `php artisan assets:publish`

[](#on-deploy-run-php-artisan-assetspublish)

This will pre-compile all assets and move them into the `public/` directory. As long as you’re using `asset_path()` to reference your assets, they’ll start serving the compiled versions.

#### Images and Fonts

[](#images-and-fonts)

Files stored in `/resources/assets/img`, `/resources/assets/font` and `/resources/assets/css` are served as-is (with proper content types) and are copied directly into the same directories in `/public` during `assets:publish`.

CSS minification is not supported at this time for raw files. Minification is provided for scss, less, coffee and js files via their compilers.

TODO
----

[](#todo)

- Add minification support for raw css files.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

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

Recently: every ~20 days

Total

14

Last Release

3641d ago

Major Versions

v1.2.4 → v2.0.02016-03-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/4954a80b9edf7d98ee5fd399433a9f7703955d6ce3909db8dae78f06428a932d?d=identicon)[shnhrrsn](/maintainers/shnhrrsn)

---

Top Contributors

[![shnhrrsn](https://avatars.githubusercontent.com/u/42901?v=4)](https://github.com/shnhrrsn "shnhrrsn (48 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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