svn: /pear2/Pyrus/trunk/ README

From: Date: Mon, 07 Dec 2009 03:40:38 +0000
Subject: svn: /pear2/Pyrus/trunk/ README
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9093@lists.php.net to get a copy of this message
saltybeagle Mon, 07 Dec 2009 03:40:38 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=291792 Log: Update package README documentation Changed paths: U pear2/Pyrus/trunk/README Modified: pear2/Pyrus/trunk/README =================================================================== --- pear2/Pyrus/trunk/README 2009-12-07 03:01:12 UTC (rev 291791) +++ pear2/Pyrus/trunk/README 2009-12-07 03:40:38 UTC (rev 291792) @@ -5,22 +5,8 @@ redesigned from the ground up for PHP 5.3 or newer, and provides significant improvements over the older PEAR Installer. -To use Pyrus, in this development series of releases, you need to -instantiate a simple script that creates a package and installs it: +To use Pyrus, execute it from the command line: +$ php pyrus.phar install PEAR2_Templates_Savant-0.1.0 -<?php -// use full path if include_path is not set up -use pear2\Pyrus -include 'PEAR2/Autoload.php'; -$config = Pyrus\Config::singleton('/where/to/install'); -// this can be a url to a remote package, a local .tgz, .zip or package.xml -$p = new Pyrus\Package('thingtoinstall'); -try { - Pyrus\Installer::begin(); - Pyrus\Installer::prepare($p); - Pyrus\Installer::commit(); -} catch (Exception $e) { - Pyrus\Installer::rollback(); - echo $e; -} -?> \ No newline at end of file +For more information, view the documentation at: +http://pear.php.net/manual/en/pyrus.php \ No newline at end of file

« previous php.pear.core (#9093) next »