PHP Classes

Auto Version: Generate automatic names to version JS, CSS files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 38%Total: 315 All time: 7,262 This week: 524Up
Version License PHP version Categories
bitsalt 1.0.2GNU General Publi...5Code Generation
Description 

Author

This is a simple class that can generate automatic names to version JS, CSS files.

It takes as parameter the file name of a JavaScript or CSS file for instance.

The class generates an automatic name to make it be versioned. i.e. the file name includes a number that is the timestamp of the time of the last modification of the file.

Innovation Award
PHP Programming Innovation award nominee
December 2017
Number 4
Web applications often use JavaScript and CSS files that are regularly updated. This is a challenging problem for Web applications because browsers often cache these files on their side for effeciency reasons.

This package implements a solution that consists in generating automatic names for URLs that these files should be requested, so when a file changes, applications will use a different name.

Manuel Lemos
Picture of Jeff Moser
  Performance   Level  
Name: Jeff Moser <contact>
Classes: 1 package by
Country: United States United States
Age: 54
All time rank: 3791498 in United States United States
Week rank: 191 Up27 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (2)  
File Role Description
Plain text file AutoVersion.php Class Class source
Plain text file README.md Data Auxiliary data

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 Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:315
This week:0
All time:7,262
This week:524Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:38%StarStar
Rank:3969