PHPackages                             phant/assets-versions - 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. phant/assets-versions

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

phant/assets-versions
=====================

get assets versions easily

4.2(2y ago)35.5k↓63.9%MITPHPPHP &gt;=8.1

Since Apr 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PhantPHP/assets-versions)[ Packagist](https://packagist.org/packages/phant/assets-versions)[ RSS](/packages/phant-assets-versions/feed)WikiDiscussions main Synced 2d ago

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

Assets versions
===============

[](#assets-versions)

Requirments
-----------

[](#requirments)

PHP &gt;= 8.1

Install
-------

[](#install)

`composer require phant/assets-versions`

Basic usage
-----------

[](#basic-usage)

Add this code in your initialization of your application :

```
use Phant\AssetsVersions\AssetsVersions;

$assetsVersions = new AssetsVersions(
	'public/', // path to be processed
	[ 'css', 'js' ], // extensions to be processed
	[ 'node_modules/' ] // path to be ignored in path to be processed
);
```

And this code when calling your assets :

```
