Re: Announcements hassle

From: Date: Wed, 22 Oct 2008 18:28:57 +0000
Subject: Re: Announcements hassle
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29350@lists.php.net to get a copy of this message
Chuck Burgess wrote: > On Wed, Oct 22, 2008 at 12:44 PM, Olivier Guilyardi <ojaiml@nerim.net>wrote: > >> For Structures_DataGrid, I think it would be much more attracting if it was >> a >> standalone project, a component that one can plug and play, through easy >> http >> downloading. I know this is at the opposite of the pear installer concept. >> But >> it is the way the nicest components I know are packaged. > > Packaging it with all its dependencies in a PHAR would be one possibility to > accomplish this. The attendees at php|appalachia got a good taste of > Brett's Simple Channel Server as a standalone PHAR file application, and > were vocally impressed. This is a good idea indeed, as IIUC you do not need PHP_Archive or the phar extension to be installed on the host system. Anyway, one of the things I'm thinking about is removing many dependencies. For example some of the heaviest are MDB2 and DB, and since SDG now has a PDO driver, I could keep only the later, provided I break PHP4 compatibility, which is an idea that I quite like. > Another possibility is the regular unzip-and-go tarball that includes all > dependencies. We package PhpDocumentor that way for its Sourceforge > downloads. I actually have a more drastic solution. Distributing SDG as a single PHP file, yeah. I've already written scripts to achieve this for internal use. Basically, on SVN (bye CVS) you would find all classes as separated files, for anyone to come hacking in. But my build-chain (certainly Waf) would include a dist target that would: 1 - bundle all classes into a single file, remove all require_once(), etc.. 2 - remove all comments 3 - run the unit tests 4 - produce the distribution file if successful This should be lighter than PHAR, and I feel very concerned with performance issues. The big advantage of a single file (and PHAR is good idea in this regard), is that the massive number of users who can't/don't know how to set up their include path just don't need to. And it avoids the overhead of require_once(). Then mix this into a nice Trac website, which, among others, features such a beautiful bug tracker, and you get SDG reloaded... Now, I just need to find a new project name ;) -- Olivier

« previous php.pear.general (#29350) next »