Contributions to libvirt-php

(aka libvirt-php hacking)

Hacking libvirt-php

If you want to implement new features to libvirt-php or fix some bugs you have found you can download the source from our GIT repository using

git clone git://libvirt.org/libvirt-php

Please make sure you're using the coding style in which the code is already written (beware of spaces instead of tabs etc). When you have the patch prepared please send us the patch using the procedure mentioned in Sending patches paragraph.

Sending patches

If you would like to contribute to the libvirt-php project you could write patches for it but please make sure you're following the procedure below:

  1. Sign up to libvirt list if you're not on it yet (libvir-list@redhat.com)
  2. Set your git username and e-mail and also set the subject prefix in the project's repository using:
    git config --local format.subjectprefix "libvirt-php PATCH"
  3. Create the patch in the form of the commits and include also information about usage (example source codes maybe) and testing
  4. Format it using git format-patch -X where X is the number of patch parts to be posted, for multipart patch (X is greater than 1) please use also numbering (-n) option and include the cover-letter (--cover-letter).
  5. Send to libvir-list@redhat.com using the git send-email <files> --to libvir-list@redhat.com command where <files> can be 000* to send all the patches formatted by git format-patch since git format-patch names the files starting with the 4 digit numbers.