[pkg-php-pear] Composer packages autoloader
Mathieu Parent (Debian)
sathieu at debian.org
Wed Jun 22 18:49:34 UTC 2016
2016-06-22 15:44 GMT+02:00 David Prévot <taffit at debian.org>:
> [Forwarding a message from Fedora people with their consent, keeping
> them CC since they’re not subscribed.]
> Le 21/06/2016 à 04:37, Ondřej Surý a écrit :
>> On Tue, Jun 21, 2016, at 06:42, Remi Collet wrote:
>>> > Hi Ondrej,
>>> > Having look at some Debian packages, I think maintainers are using a
>>> > solution close to our, to manage autoloader 
>>> > Our documentation:
>>> > https://fedoraproject.org/wiki/SIGs/PHP/PackagingTips#Autoloader
>>> > For now we are using classmap, Zend or Symfony autoloaders which are
>>> > mostly un-maintained as nearly everybody use composer outside of distro.
>>> > Using them could also become a nightmare when we'll have 2 versions of
>>> > the same framework (e.g. symfony 2 and 3)
>>> > So we are thinking to create a Fedora Autoloader, without any
>>> > dependencies, used in our packages.
>>> > https://github.com/siwinski/php-fedora-autoloader
>>> > This is a work in progress, really in "devel" state.
Thanks for this, and thanks for sharing.
We really need cross-distro cooperation on this topic (and others, ...).
The code is great, but couldn't we go a little bit further, and
directly parse composer.json and construct the autoload file from it?
In Debian, we use pkg-php-tools which is able to map PEAR or Composer
metadata and dependencies to there deb equivalent. Merging autoloader
code in pkg-php-tools would benefit both Fedora and Debian. The code
More information about the pkg-php-pear