burdapraha / oc_version_number
Helper function which fixing visitors browser cache issue after your changes at CSS or javascript
Installs: 1 000
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 3
Open Issues: 0
Type:vqmod-plugin
pkg:composer/burdapraha/oc_version_number
This package is not auto-updated.
Last update: 2025-10-27 02:10:19 UTC
README
Helper function which fixing visitors browser cache issue after your changes at CSS or javascript
Preview
You can also use this function for your custom files (CSS / JS, images, ...) like this:
<link href="<?php echo versionNumber($style['href']); ?>" type="text/css" rel="<?php echo $style['rel']; ?>
Installation
- Requiring installed vQmod because vQmod doesn't support installing via composer itself.
- 💲 composer require burdapraha/oc_version_number dev-master
- 💲 composer require sasedev/composer-plugin-filecopierfor files manipulating
- Add this code to your 🎵 composer.json project file, extra section:
    "extra": {
        "filescopier": [
            {
                "source": "vendor/burdapraha/oc_version_number/upload",
                "destination": "upload",
                "debug": "true"
            }
        ]
    }  
It will move vQmod xml file to correct folder.
- optionally you can add row to your .gitignorefile with path to svg.xml (example: upload/vqmod/xml/oc_version_number.xml)
- celebrate! 🎉 🎉 🎉
