Basic PHP REST setup using public / private key authentication