New PEAR/WebInstaller Class
| From: | Christian Stocker | Date: | Sat, 07 Jul 2001 22:27:37 +0000 |
| Subject: | New PEAR/WebInstaller Class | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-588@lists.php.net to get a copy of this message | ||
Not much to say about that, my ideas which were leading to that were in a
mail from this morning.
i commited it under php4/pear/Experimental/PEAR/WebInstaller Class
and here comes the introduction from the inline doc:
/* This class should simplify the task of installing PEAR-packages, if you
* don't have a cgi-php binary on your system or you don't have access to
* the system-wide pear directory.
*
* To use it, make the following php-script:
*
* <?php
* require("PEAR/WebInstaller.php");
* $installer = new PEAR_WebInstaller("/path/to/your/install/dir","http://php.chregu.tv/pear/");
* $installer->start();
* ?>
*
* Both parameters are optional. If the install dir is ommitted, the
* installer takes either the system wide pear-directory (mostly
* /usr/local/lib/php on unix), if it's writeable, or else the directory
* the script is started. Be advised, that the directory, where the
* PEAR::Packages will be installed, has to be writeable for the web-server.
*
* The second parameter points to the server/directory where all the
* packages and especially Packages.xml is located. If not given, the
* standard PEAR-Repository is taken (http://pear.php.net/whatever..)
*
* After installation, just add the install-dir to your include_path and
* the packages should work.
*
* If you are System Adminisitrator and want the installed packages to be
* made available for everyone, just copy the files to the systemwide
* pear-dir after installation on the commandline. Or also add the
* install-dir to the systemwide include_path (and maybe don't forget to
* take the writeable off the directory..)
*
* TODO:
* - Caching of Package.xml (it doesn't need to be downloaded everytime)
* - Grouping of Packages
* - Show installed Packages (from /var/lib/php/packages.lst?)
* - Add possibility to install a package (.tgz) from the local file
* system without a global Packages.xml (useful if no cgi-php
* around and you need this package you downloaded installed :))
* - Search Function (maybe needed if we have hundreds of packages)
*
*/
--
nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich
pho...+41 1 451 6021 www...http://phant.ch/chregu
mob...+41 76 561 8860 ema...chregu@phant.ch