PHPackages                             lb/neos-hashed-asset-uri - 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. [Caching](/categories/caching)
4. /
5. lb/neos-hashed-asset-uri

ActiveNeos-package[Caching](/categories/caching)

lb/neos-hashed-asset-uri
========================

A tiny Neos/Flow package that provides an Eel helper to generate cache-busting URIs for static resources.

v1.0.0(6mo ago)1262MITPHP

Since Oct 16Pushed 6mo agoCompare

[ Source](https://github.com/lucasboerner/LB.HashedAssetUri)[ Packagist](https://packagist.org/packages/lb/neos-hashed-asset-uri)[ RSS](/packages/lb-neos-hashed-asset-uri/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

LB.HashedAssetUri
=================

[](#lbhashedasseturi)

A tiny Neos/Flow package that provides an Eel helper to generate cache-busting URIs for static resources.

It appends a short content hash to the resource URL (as a `?v=...` query parameter), so browsers will fetch a new version whenever the file content changes, while still allowing long-lived caching for unchanged assets.

Features
--------

[](#features)

- Eel helper `HashedStaticResource` available in the default Fusion context
- Generates a content-based hash (first 10 chars of SHA-1) for the referenced static resource
- Works with localized/static resources via Neos' `StaticResourceHelper`

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

[](#installation)

Install via Composer in your Neos project:

```
composer require lb/neos-hashed-asset-uri
```

The package registers its Eel helper automatically via Settings.yaml, no further setup is required.

Usage
-----

[](#usage)

In Fusion, use the `HashedStaticResource` helper to build the URI of a static resource with cache busting:

```
prototype(Vendor.Site:Example) < prototype(Neos.Fusion:Component) {
    renderer = afx`

    `
}

```

Signature:

- `HashedStaticResource.uri(packageKey: string, pathAndFilename: string, localize: boolean = false): string`

Examples:

- CSS: `HashedStaticResource.uri('Vendor.Site', 'Public/Css/index.css')`
- JS: `HashedStaticResource.uri('Vendor.Site', 'Public/JavaScript/index.js')`

The generated URLs look like:

```
/_Resources/Static/Packages/Vendor.Site/Public/Css/index.css?v=1a2b3c4d5e

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance66

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

207d ago

### Community

Maintainers

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

---

Top Contributors

[![lucasboerner](https://avatars.githubusercontent.com/u/92752057?v=4)](https://github.com/lucasboerner "lucasboerner (5 commits)")

---

Tags

fusionneoscms

### Embed Badge

![Health badge](/badges/lb-neos-hashed-asset-uri/health.svg)

```
[![Health](https://phpackages.com/badges/lb-neos-hashed-asset-uri/health.svg)](https://phpackages.com/packages/lb-neos-hashed-asset-uri)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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