amended toctree for PHP API's
added github edit link template for RTD theme