Question

I'm looking for a script that will quickly implement package install/update functionality for my framework. It should be able to do the following things:

  • Must be PHP 5 compatible.
  • Should be able to install and update components' files and database tables.
  • Should allow defining of package dependencies and have a form of conflict resolving.
  • Should allow UPDATE SQL-statements when the developer of the package provides it. (To make database alterations without losing data).
  • Should be able to 'jail' an update package to a target folder.
  • Should be able to define and detect different package types to apply mentioned 'jail'.
  • Should provide an API to integrate it in custom backend.
  • Should allow downloading of the packages, preferably over HTTP (rather than FTP or others).

I plan on using this as a stand-alone utility to easily provide updates for modular frameworks as well as custom code for our clients.

If you have recommendations of tools that are similar or used in an open source framework to base it off that would be good as well. :)

Was it helpful?

Solution

I don't know of any magic tools to do this, but a couple that might help you do these tasks are Phrake and Composer.

Phake is a PHP version of Ruby's Rake util. You could use these scripts to set up your database, update files and run unit tests.

For package management you could use Composer to manage your dependencies (it can also download from PEAR if you depend on packages from those systems) and of course this could be incorporated into your build scripts.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top