PHPackages                             alexpts/symfony-asset-strategy-last-modify - 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. alexpts/symfony-asset-strategy-last-modify

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

alexpts/symfony-asset-strategy-last-modify
==========================================

Strategy for symfony asset component

2.0.1(8y ago)24.4k1[1 issues](https://github.com/alexpts/symfony-asset-strategy-last-modify/issues)MITPHPPHP ^7.1

Since Aug 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexpts/symfony-asset-strategy-last-modify)[ Packagist](https://packagist.org/packages/alexpts/symfony-asset-strategy-last-modify)[ Docs](https://github.com/alexpts/symfony-asset-strategy-last-modify)[ RSS](/packages/alexpts-symfony-asset-strategy-last-modify/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

symfony-asset-strategy-last-modify
==================================

[](#symfony-asset-strategy-last-modify)

Strategy for symfony assets component

[![SensioLabsInsight](https://camo.githubusercontent.com/c08c656f9dfed0f55d4abae0da373ab9feb61a9f0ba61c5d1a3e63af4d0dc73c/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30323531623663312d346430322d343531302d613662372d6262323333386363666361312f6269672e706e67)](https://insight.sensiolabs.com/projects/0251b6c1-4d02-4510-a6b7-bb2338ccfca1)

[![Build Status](https://camo.githubusercontent.com/8ae491c86e3d8a146e3fddd57271a17af12582d2461f53f17a14c56178c58626/68747470733a2f2f7472617669732d63692e6f72672f616c65787074732f73796d666f6e792d61737365742d73747261746567792d6c6173742d6d6f646966792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexpts/symfony-asset-strategy-last-modify)[![Test Coverage](https://camo.githubusercontent.com/f1c8781805ee8d7237908dd2c558bc129b10d395f17be03bee32f544f5f25fb4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f73796d666f6e792d61737365742d73747261746567792d6c6173742d6d6f646966792f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/alexpts/symfony-asset-strategy-last-modify/coverage)[![Code Climate](https://camo.githubusercontent.com/3555ff4253030fe32098c72765931b9799b535fd392e13598ebdaed8b6c32f7c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f616c65787074732f73796d666f6e792d61737365742d73747261746567792d6c6173742d6d6f646966792f6261646765732f6770612e737667)](https://codeclimate.com/github/alexpts/symfony-asset-strategy-last-modify)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/65ca5b7d5a9672dcdc8017e505e06c13a494fe095a6872e6e401a5b659cfaa0d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65787074732f73796d666f6e792d61737365742d73747261746567792d6c6173742d6d6f646966792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexpts/symfony-asset-strategy-last-modify/?branch=master)

Strategy for symfony assets component for get version from last modify file time.

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

[](#installation)

`$ composer require alexpts/symfony-asset-strategy-last-modify`

### Demo

[](#demo)

```
$package = new Package(new LastModifyStrategy($assertDirPath));
$url = $package->getUrl('/jquery.js'); // /jquery.js?v=1472155706
```

With CDN

```
$package = new Package(new LastModifyStrategy($assertDirPath, 'cdn.host.org'));
$url = $package->getUrl('/jquery.js'); // //cdn.host.org/jquery.js?v=1472155706
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~130 days

Total

5

Last Release

3025d ago

Major Versions

1.0.1 → 2.02017-07-25

1.2 → 2.0.12018-01-30

PHP version history (2 changes)2.0PHP ^7.1

1.2PHP &gt;5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/31106536118e11bf9d0c9d7f467db5b534efa9c46ee76680b308f0c39d9a798c?d=identicon)[alexpts](/maintainers/alexpts)

---

Top Contributors

[![alexpts](https://avatars.githubusercontent.com/u/1306916?v=4)](https://github.com/alexpts "alexpts (12 commits)")[![vchebotarev](https://avatars.githubusercontent.com/u/2445241?v=4)](https://github.com/vchebotarev "vchebotarev (1 commits)")

---

Tags

assetversion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexpts-symfony-asset-strategy-last-modify/health.svg)

```
[![Health](https://phpackages.com/badges/alexpts-symfony-asset-strategy-last-modify/health.svg)](https://phpackages.com/packages/alexpts-symfony-asset-strategy-last-modify)
```

###  Alternatives

[pragmarx/version

Take control over your Laravel app version

5921.2M2](/packages/pragmarx-version)[nikolaposa/version

Value Object that represents a SemVer-compliant version number.

1406.4M16](/packages/nikolaposa-version)[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.0M134](/packages/rmrevin-yii2-fontawesome)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[wolfcast/browser-detection

The Wolfcast BrowserDetection PHP class facilitates the identification of the user's environment such as Web browser, version, platform family, platform version or if it's a mobile device or not.

1391.0M7](/packages/wolfcast-browser-detection)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1121.2M1](/packages/shivas-versioning-bundle)

PHPackages © 2026

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