- Contributor: s.haendler@covi.de
- Version: 1.0
- Release: 2017-06-29
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5762TWVRT6RQ4
- License: GPLv2 or later
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
Localhub is a tiny web based version control, that creates a zip file on call with version log
Requires "libzip" which is bundled with PHP.
- Install folder "localhub" on root level of your webspace
- Create a hidden file called ".localhub" on root level of your webspace (if you did not yet copy it)
- Edit the ".localhub" file and write down all files to put into zip - ONE per col. Examples:
- a. "./index.php" => zips the index.php as it is on root level
- b. "./js/file.js" => zips the "file.js" into folder "js"
- c. "./index.org=>./index.php" => zips the "index.org" from your web account as "index.php" on root level
- d. "./file.js=>./js/file.js" => zips the "file.js" from your web account as "file.js" into folder "js"
- Edit the „config.php“ in folder „localhub“:
- a. define('LOCALHUB', 'localhub'); // the directory, your localhub is located
- b. define('VERSIONS', 'versions.log'); // the filename to log versions
- c. define('BASEVERSION', '1.0'); // the base version your zip file will be named. required. NO dot at the end
- d. define('SLUG', 'slug'); // the slug before version your zip file will be named. required. UNIX-filename-style
- e. define('LOCALDATE', 'd.m.Y, H:i'); // the date format, the last file will be shown
- put the localhub script call to anywhere you want in a PHP-section on your page "require('./localhub/localhub.php');"
- first release