PHP and Template event fixes

- Remove GitHub revision lines
- Fix PHP and Template events