Add table of contents to PHP docs

The page is rather long and the titles have multiple hiearchy levels