then write a PHP front-end to manage the service.
I was with you until this! Use Euhporia, maybe w/WebClay! It's actually much easier to create web apps in WebClay than PHP, IMHO
Jeremy