Unlike with JavaScript we don’t have all those classes pre-built.
Here is a sample PHP script for interacting with the API that one of the engineers sent me. Hopefully it’s enough to get you going.
use \DreamFactory\Core\Utility\ServiceHandler;
use \DreamFactory\Core\Enums\DataFormats;
$verb = \Request::method();
$service = \Request::input('service');
$resource = \Request::input('resource');
$urlQuery = \Request::query();
$postedPayload = \Request::json()->all();
$format = DataFormats::JSON;
$headers = \Request::header();
// uncomment for debugging
//return [
// 'verb' => $verb,
// 'service' => $service,
// 'resource' => $resource,
// 'query' => $urlQuery,
// 'payload' => $postedPayload,
// 'format' => $format,
// 'headers' => $headers
//];
return ServiceHandler::handleRequest($verb, $service, $resource, $urlQuery, $postedPayload, $format, $headers);