Added link to php snippet on Gist