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(3mo ago)117[1 PRs](https://github.com/massaal-com/dusha/pulls)MITPHPPHP ^8.3CI passing

Since Jan 29Pushed 2mo 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 today

READMEChangelogDependencies (24)Versions (10)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

38

—

LowBetter than 83% of packages

Maintenance83

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

104d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14122644?v=4)[Boyd Bloemsma](/maintainers/boydbloemsma)[@boydbloemsma](https://github.com/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-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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