I was coding some month ago an application that I call it “PEAR Manager”. The idea is to bring a web interface to PEAR that let you easily manage and update all/any PEAR Packages. I’m not sure that PEAR_Frontend_Web is exactly what I was looking for (Just download it for test), but I remember that I stopped because of current version of a package already installed ! An information that exists nowhere, maybe in XML files or cvs $Id. Anyway I remember that I suggested to add a version() function as a standard, wich could help, but hard to manage for authors. Otherwise the solution of cvs $Id looks the best if all code are downloaded from CVS ? PEAR_Frontend_Web is using the class PEAR/Remote.php so I guess it get the update informations from that class.
Anyway I was using Mysql as database backend, the database schema is below :
–
– Table structure for table `latestreleases`
–
CREATE TABLE `latestreleases` (
`package` varchar(255) NOT NULL default ”,
`version` varchar(10) NOT NULL default ”,
`state` varchar(20) NOT NULL default ”,
`filesize` varchar(20) NOT NULL default ”,
UNIQUE KEY `package` (`package`)
) TYPE=MyISAM;
– ——————————————————–
–
– Table structure for table `packages`
–
CREATE TABLE `packages` (
`packageid` int(11) NOT NULL default ‘0′,
`name` varchar(255) NOT NULL default ”,
`categoryid` int(11) NOT NULL default ‘0′,
`category` varchar(100) NOT NULL default ”,
`license` varchar(100) NOT NULL default ”,
`summary` text NOT NULL,
`description` text NOT NULL,
`lead` varchar(255) NOT NULL default ”,
`stable` varchar(10) NOT NULL default ”,
`unstable` varchar(10) NOT NULL default ”,
`state` varchar(20) NOT NULL default ”,
UNIQUE KEY `packageid` (`packageid`)
) TYPE=MyISAM;
There is alread 174 Pear package and 307 field in releases table ! I’ll try to parse code for package’s version as a first step, Then we’ll see !
PEAR is really great but I think it need more tools to make it more friendly “like PHP” !
Tags: No Tags





June 11th, 2005 at 8:26 am
I agree Hatem about the friendly PHP, but most of the time people setting up PEAR are admins, and it’s a very simple command to install a new package or so, something as easy as APT is
But of course, GUI tools make life sometimes easier for certain crowd. Great to see you’re working on it, did you try discussing this on PEAR-DEV mailing list? you’ll get very useful comments, and maybe later on it can be part of PEAR.
June 11th, 2005 at 8:48 am
I just need to finish a first version to make the idea more clear then i’ll discuss it again with PEAR-DEV.
“most of the time people setting up PEAR are admins” I guess because others find it hard to use and to set up…
A friend was making an e-commerce website and asked me “what does array mean?” that’s what I call friendly PHP