const p = new Promise(...).then(...).then(...).catch();
можно записать какconst p1 = new Promise(...);
const p2 = p1.then(...);
const p3 = p2.then(...);
const p4 = p3.catch(...);
$json = file_get_contents('php://input');
$data = json_decode($json);
axios.get(url[, config])