Add PHP functions for API

I add simple PHP functions for work with api. So i think this will save time for programmers. If this functions example be good idea i write some munin plugins for watch some tanks progress -)