REST Request Manager in PHP (Using PHP Class)