LAUPRETRE François (P) wrote:
>> From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] 
> 
>>> ...and phar is the best candidate I know for this.
>> I'd say the only one
> 
> NO, there is an alternate PHP package format. It solves every issues you 
> rose about phar (including the direct url access to a virtual file). Its
> name is PHK and it is available at http://phk.tekwire.net. The site 
> includes an extensive documentation and several demo packages, including 
> PHPUnit, the Zend Framework, The ZF documentation, Smarty,... Please also 
> note that a PHK pakage embeds everything needed to manage its internal 
> subfiles, avoiding the need for a an external (pear?) tool.

With all due respect, this is a rather severe exaggeration of PHK's talents.

PHK does *not* use a standardized file format like ZIP, and the format
is undocumented as of last Friday when I read all of the docs at your site.

PHK source code is not easy to find (is it even publicly available?)

PHK source code does not adhere to any coding standard I've ever seen
before.

PHP_Archive (the equivalent to PHK) is only needed to create the .phar
archives, just as PHK is needed to create PHK archives (no difference -
external tool needed) but in both cases nothing is needed to run the
resulting archives.

PHK is developed by one developer without the benefit of community
oversight, or any evidence of interest in community-based open source
development at all.

The advantages PHK possesses are

1) snazzier looking website
2) integrated introspection (which cannot be "disabled" at packaging
time no?)  PHP_Archive does not require introspection but assumes the
programmer would write it - something that would be a wonderful addon.
3) built in front controller.  A front controller is easy enough to
write I did not consider it necessary to enable one by default, but this
is not a bad idea as an optional accessory for beginning users.
4) interesting idea of "mounting" archives (not quite sure if this
requires the use of PHK_Util to load archives or works with native
require_once?
5) easy docs on how to use it

The phar extension provides #5 at a more complete level than PHK (i.e.
file format is documented) at http://www.php.net/phar

PHK does not solve the issues that PHP_Archive has which is it too will
stop working in PHP 6.

Thanks,
Greg

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to