ejabberdctl is by far the easiest in this specific case. The other options are:
Implement a full client XMPP in PHP (!)
Implement a module in Erlang that proxies the requests: the PHP<-->Erlang communication would need to be through a socket and lots of marshaling would be involved (!)