| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 77 | All time: 10,162 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">
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Doc. | Documentation | |||
| / | example |
| / | src | / | asset |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| |
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. |
| 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.