PHP package manager
Posted
by Mathias
on Stack Overflow
See other posts from Stack Overflow
or by Mathias
Published on 2010-05-31T17:18:05Z
Indexed on
2010/05/31
17:23 UTC
Read the original article
Hit count: 268
Hey,
does anyone know a package manager library for PHP (as e.g. apt or yum for linux distros) apart from PEAR? I'm working on a system which should include a package management system for module management. I managed to get a working solution using PEAR, but using the PEAR client for anything else than managing a PEAR installation is not really the optimal solution as it's not designed for that. I would have to modify/extend it (e.g. to implement actions on installation/upgrade or to move PEAR specific files like lockfiles away from the system root) and especially the CLI client code is quite messy and PHP4. So maybe someone has some suggestions
- for an alternative PEAR client library which is easy to use and extend (the server side has some nice implementations like Pirum and pearhub)
- for completely different package management systems written in PHP (ideally including dependency tracking and different channels)
- for some general ideas how to implement such a PM system (yes, I'm still tinkering with the idea of implementing such a system from scratch)
I know that big systems like Magento and symfony use PEAR for their PM. Magento uses a hacked version of the original PEAR client (which I'd like to avoid), symfony's implementation seems quite integrated with the framework, but would be a good starting point to at least write the client from scratch. Anyway, if anybody has suggestions: please :)
© Stack Overflow or respective owner