Update PHP snippets.

- Break into separate files, and move to snippets/php/ folder.
- Update to be PSR-2 compliant.