Let\'s say I release a code library as a standalone PHP class. Someone then uses version 1.0 of that library in their application. Later, I release version 2.0 of the libr
Let the user select a version, then according to that load your api file
The file name should be dynamically determinable, for example:
include('/lib/api-'.$versionId.'/library.php');
if version -1.0 as wise
Be careful to ensure that the user input is converted into a single decimal float
and nothing nefarious.