Well I am no php developer. I do use probind which is php based web management suite that is written in php and performs everything that you mentioned you need.
What I recommend that you do, is download the source code from here:
ProBIND | Get ProBIND at SourceForge.net
Open the php files and see how it was built. That should give you a great starting point to build your application.