Re: PEAR Forum

From: Date: Tue, 25 Sep 2001 19:42:46 +0000
Subject: Re: PEAR Forum
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-2045@lists.php.net to get a copy of this message
PEAR has room for larger packages like Phorum (the "A" in PEAR is for "Application" after all), but we haven't quite figured out a way to integrate them yet. We need to figure out how to fit applications into the package namespace. I guess it cooks down to picking one of these two options: 1. Each application gets its own top-level package name. Pros: simple. Cons: may clash with topics we may want to add later. If application packages have fairly unique names it shouldn't matter. 2. Each application prepends something to its package name, for example "App_". Pros: won't clash with topics. Cons: it just looks silly. I'm in favor of (1). - Stig [Morgan Christiansson <sft3905@post.netlink.se>] > Hello, i'm wondering what you think of having larger things like > forums in PEAR, or perhaps optionally downloadable, which might be > better, since there is no good way of keeping the automatically > installed repository updated. > > I'm thinking of naming it PEAR Forum, if you don't approve you don't > have to worry. > > Anyway, i've written a forum that is designed as a library, so to > display a page you do something like this: > <?PHP > $list = new pear_forum_list(); > $list->forum_id = $HTTP_GET_VARS["forum_id"]; > $list->offset = $HTTP_GET_VARS["offset"]; > $list->display(); > ?> > > It's written with the PEAR codeing standards, with the exception of > functions which currently has the first brace at the same line as the > function declaration. It has PHPDoc generated documentation, a plugin > and template system, abstracted DB, has a system to easily cache pages > (just catch $list->display() in the output buffer) and/or you can add > a little code to cache SQL queries. > > Well that's most of the features, PEAR stands for PHP Extension and > Application Repository so why shouldn't it include apps? > > > I think PEAR Forum fullfill the purpose of PEAR: > - to provide a consistent means for library code authors to share > their code with other developers. > > It is class based easily embedded in other apps and has a plugin > system to extend the base functionality and uses PHP as a template > parser to give highly flexible templates. > > > /Morgan Christiansson > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net > For additional commands, e-mail: pear-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.pear.dev (#2045) next »