Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 77 | All time: 10,159 This week: 455 |
Version | License | PHP version | Categories | |||
legato-asset 1.0.0 | MIT/X Consortium ... | 5.3.9 | HTML, PHP 5 |
Description | Author | |
This package can get versioned URLs for CSS, JavaScript and images. |
<?php |
A simple tool for generating unique versioned URLs for images, stylesheet, javascript, etc.
composer require legato/asset
Relative Path
<link href="<?= asset('css/style.css') ?>" rel="stylesheet">
Absolute Path
<link href="<?= asset('/css/style.css') ?>" rel="stylesheet">
css/style.css?7ddf32e17a6ac5ce04a8ecbf782ca509
<link href="css/style.css?7ddf32e17a6ac5ce04a8ecbf782ca509" rel="stylesheet">
/css/style.css?7ddf32e17a6ac5ce04a8ecbf782ca509
<link href="/css/style.css?7ddf32e17a6ac5ce04a8ecbf782ca509" rel="stylesheet">
<link href="<?= asset('css/style.css', 'v1') ?>" rel="stylesheet">
css/style.css?v1=7ddf32e17a6ac5ce04a8ecbf782ca509
<link href="css/style.css?v1=7ddf32e17a6ac5ce04a8ecbf782ca509" rel="stylesheet">
Files (10) |
File | Role | Description | ||
---|---|---|---|---|
example (1 file, 2 directories) | ||||
src (2 directories) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
readme.md | Doc. | Documentation |
Files (10) | / | example |
Files (10) | / | src | / | asset |
File | Role | Description |
---|---|---|
Asset.php | Class | Class source |
AssetStrategyContract.php | Class | Class source |
StaticVersionStrategy.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.