Fork of original XMP PHP Toolkit v 2.0 rev 14 from Mathias Vitalis