sry i dont know much about php but you can use postman to verify something like in postman in post api you can test your api .if it works and if you are receiving the data which means you need to look for the php part. in post man use post method < ESP32IP >/flow .if you receive the data in json there you can freely check the php code
Note : Make sure ESP32 and your PC are in same network