Download .zip |
Info | Example | View files (10) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-06-18 (2 months ago) | Not yet rated by the users | Total: 71 This week: 1 | All time: 9,182 This week: 468 |
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. |
|
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 |
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 | / | src | / | asset |
File | Role | Description |
---|---|---|
Asset.php | Class | Class source |
AssetStrategyContract.php | Class | Class source |
StaticVersionStrategy.php | Class | Class source |
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.