How to setup Captive Portal on Mikrotik Router?

https://wiki.mikrotik.com/wiki/Hotspot_server_setup

https://wiki.mikrotik.com/wiki/HotSpot_external_login_page

Mikrotik doesnt host PHP pages natively, if you want a PHP page specifically you’ll have to externally host it and have your hotspot configured to point to it (all info in those 2 links)