2017 © Pedro Peláez
 

php-extension fileversion

automatically timestamp file version based on the latest modification date

image

deitsolutions/fileversion

automatically timestamp file version based on the latest modification date

  • Monday, May 28, 2018
  • by deitsolutions
  • Repository
  • 3 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 100 % Grown

The README.md

Automatic file version based on the timestamp

Format file path by adding datetime segment if necessary., (*1)

Append the last modified timestamp to the file name in the form of [file_name]?v=[timestamp]., (*2)

Installation

Add the extention using composer:, (*3)

"almeyda/fileversion": "*", (*4)

Usage

<link rel="stylesheet" type="text/css" href="<?php echo \almeyda\fileversion\src\FileVersion::set('pathToCssFileFromTheRoot'); ?>">
<img src="<?php echo \almeyda\fileversion\src\FileVersion::set('pathToImgFileFromTheRoot'); ?>">
<script src="<?php echo \almeyda\fileversion\src\FileVersion::set('pathToJsFileFromTheRoot'); ?>"></script>

The Versions

28/05 2018

dev-master

9999999-dev https://github.com/deitsolutions/fileversion

automatically timestamp file version based on the latest modification date

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

php file version anti cache