How do you provide early enough in the PHP request pipeline, the POST verb and refuse others?
This should work:
if ($_SERVER['REQUEST_METHOD'] != 'POST') die();