Similar to T427964 & T432019 :
A lib/templates/edit.php for the editing interface
In public/index.php: An $app->get() action for displaying the edit page interface
In public/index.php: $app->post() action for handling executing the wiki editing
Useful background docs:
PHP app framework: https://www.slimframework.com/docs/v4/
Using this for templates: https://github.com/slimphp/PHP-View