Sandbox example (change environment to PRODUCTION
for production):
$client = new SquareClient([
'accessToken' => 'YOUR SANDBOX ACCESS TOKEN HERE',
'environment' => Environment::SANDBOX,
]);
I’ll share your feedback about this with the API Explorer team. The above can be found in the README of the SDK.