Updated PHP version; added examples and Composer packaging files.
Updates and debugging of Python version; PHP and Python interfaces now match.