fpoirotte/Erebot — Issue #2: phar packages
Author: fpoirotte
Created: 2011-10-15 14:11:46+00:00
State: open

It'd be nice to have readily available phar packages with all required dependencies bundled in it.
This way, running Erebot would only require you to write the configuration file (Erebot.xml), drop Erebot-X.Y.Z.phar in the same directory and run the phar.

While at it, the default modules should also provide a phar archive. Then Erebot could search in a predefined directory (eg. "modules") for those archives and load them automatically (or rather, add them to the autoloader).

Hence, the file hierarchy would look somewhat like that:

* Erebot/
* Erebot-X.Y.Z.phar
* modules/
* Erebot_Module_AZ-A.B.C.phar
* Erebot_Module_Admin-D.E.F.phar

Where "X.Y.Z", "A.B.C" & "D.E.F" are version strings.

Please note that the modules' names all start with "Erebot_Module_" but that's only because I kept the current naming convention, the bot should actually take into account all .phar archives it finds in the "modules/" directory.