1. Go to this page and download the library: Download yaro/gamstop library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
try {
$response = Gamstop::check($user);
// ...
} catch (\Yaro\Gamstop\ExceptionsMissingParametersException $e) {
// if missing parameters
} catch (\Yaro\Gamstop\ExceptionsApiKeyInvalidException $e) {
// if API key invalid or IP address not in range
} catch (\Yaro\Gamstop\ExceptionsNonPostCallException $e) {
// for non-POST calls
} catch (\Yaro\Gamstop\ExceptionsRateLimitedException $e) {
// if rate limited
} catch (\Yaro\Gamstop\NetworkingErrorException $e) {
// in case of networking error (connection timeout, DNS errors, etc.)
}