PHPackages                             massaal-com/dusha - 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. massaal-com/dusha

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

massaal-com/dusha
=================

No-build asset management for Laravel

v0.1.5(1mo ago)115MITPHPPHP ^8.3CI passing

Since Jan 29Pushed 1mo agoCompare

[ Source](https://github.com/massaal-com/dusha)[ Packagist](https://packagist.org/packages/massaal-com/dusha)[ Docs](https://github.com/massaal-com/dusha)[ GitHub Sponsors](https://github.com/massaal-com)[ RSS](/packages/massaal-com-dusha/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (24)Versions (8)Used By (0)

No-build asset management for Laravel
=====================================

[](#no-build-asset-management-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7424f35efc37cc91356abe7cd0bb586d8e339f870466fdb5d1c95bfa1cda7f8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61737361616c2d636f6d2f64757368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/massaal-com/dusha)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b7d7dbb558ef695f82f85aa6bc0175f26e1965829aaab8d04e786ee534d3660d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d61737361616c2d636f6d2f64757368612f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/massaal-com/dusha/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f57a7cdf24643e906f20cacd69f8cc7c7617a6315b16342c2d02b5da32fbaf56/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61737361616c2d636f6d2f64757368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/massaal-com/dusha)

Warning

This package is currently in development. The API is subject to change until a stable release.

Dusha provides simple asset management for Laravel without requiring Node.js, Webpack, or Vite. It copies your assets to the public directory with content-based hashes for cache-busting, so browsers always load the latest version after updates.

```

```

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

[](#installation)

You can install the package via composer:

```
composer require massaal-com/dusha
```

You can publish the config file with:

```
php artisan vendor:publish --tag="dusha-config"
```

This is the contents of the published config file:

```
return [
    /*
     * Source directory for your assets (relative to base_path)
     */
    "source_path" => "resources/assets",

    /*
     * Target directory for compiled assets (relative to public_path)
     */
    "output_path" => "assets",

    /*
     * Asset paths to compile
     */
    "paths" => ["css", "js", "images", "fonts"],

    /*
     * File extensions to process
     */
    "extensions" => [
        "css",
        "js",
        "jpg",
        "jpeg",
        "png",
        "gif",
        "svg",
        "webp",
        "woff",
        "woff2",
        "ttf",
        "otf",
    ],

    /*
     * Length of digest hash (default: 8)
     */
    "digest_length" => 8,

    /*
     * Rewrite relative URLs in CSS files to use hashed asset paths
     */
    "css_url_rewriting" => true,
];
```

You can publish the blade components with:

```
php artisan vendor:publish --tag="dusha-components"
```

Usage
-----

[](#usage)

### Compiling Assets

[](#compiling-assets)

Place your assets in the source directory (default: `resources/assets/`) organized by type:

```
resources/assets/
├── css/
│   └── app.css
├── js/
│   └── app.js
├── images/
│   └── logo.png
└── fonts/
    └── custom.woff2

```

Compile your assets using the Artisan command:

```
php artisan dusha:compile
```

This will:

- Copy assets to `public/assets/`
- Add content-based hashes for cache-busting (e.g., `app-a1b2c3d4.css`)
- Generate a `.manifest.json` file for path resolution

### Including Assets in Views

[](#including-assets-in-views)

Use the Blade components in your templates:

```
{{-- Single file --}}

{{-- Load all CSS files --}}

```

Or use the `dusha()` helper function directly:

```

```

The components and helper automatically resolve the hashed filename from the manifest.

### Clearing Compiled Assets

[](#clearing-compiled-assets)

To remove all compiled assets:

```
php artisan dusha:clear
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Boyd Bloemsma](https://github.com/boydbloemsma)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance88

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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 ~10 days

Total

6

Last Release

58d ago

### Community

Maintainers

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

---

Top Contributors

[![boydbloemsma](https://avatars.githubusercontent.com/u/14122644?v=4)](https://github.com/boydbloemsma "boydbloemsma (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravelMassaaldushanobuild

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/massaal-com-dusha/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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