Import PHP class and examples to GitHub. Bump version to 1.2 with some small tweaks.