It only makes sense to do it with PHP if you already use PHP. Since you say you have no clue how to do it, I'd guess you don't use PHP.
The cool way to do it is in the cloud. Set up a Google developer account. I don't know if Google has some free tier for Google Apps. Amazon does for their AWS Lambda, which is similar to Google Apps.
The instructions for setting it with with Google Apps is the single paragraph at the end of the page!
Google probably won't shut down or go out of business. ;)
(That said, they have many times disappointed developers by starting some service and then deciding they don't want to do it any more and then shutting it down. Very unlikely for Google Apps.)