Roku SDK for communicating with the Roku Web Service API: http://sdkdocs.roku.com/display/sdkdoc/Web+Service+API
Install the latest version with composer require raymauge/rokuwsphp
<?php
use RokuWS\RokuWS;
$ws = new RokuWS(<apiKey>);
$rokuResponse = $ws->validateTransaction(<transactionId>);
$responseArray = $rokuResponse->getParsedResponse();
$expDate = $responseArray['expirationDate'];RokuWSPHP is licensed under the MIT license.