Many applications need to store and update information in files. In some cases it is also necessary to update the current versions, but also keep copies of past versions.
This package provides a sophisticated solution that uses PHP streams support to store and retrieve any version just by specifying a date in the past. The class can determine and access the correct version that existed in the specified date.
This class implements a stream wrapper that can write and read snapshots of files.
It can open a file for writing. If a previous version exist, it copies that version to a snapshot file.
The class may also open a file for reading using an optional date parameter to tell the class to open the snapshot version of the file that existed on the given date.