SQL-Demo-Restore a class to manage online demos

Hello,

I have created for my own needs a PHP5 class to automatically manage the reset of an online demo of Dolibarr from a sql file (to reset the MySQL database) and zip archive (to reset the files structure).

Everything is in pure php and thus does not require any external library (other than the ones included, thus there’s no need for any php extension and compilation).

This class is opensource under LGPLv3+ and can be downloaded here:

Note: as for where to find sql demo dumps for Dolibarr, they are directly included inside the Dolibarr archives, inside the path /dolibarr/dev/initdata/mysqldump_dolibarr_3.x.x.sql - where 3.x.x is the version of Dolibarr you have).

good job, will try it out.