$client = new GuzzleHttp\Client();
$response = $client->get('https://api.envato.com/v3/market/author/sale', [
    'headers' => [
        'Authorization' => 'Bearer ' . $api_token,
    ],
    'query' => ['code' => $purchase_code]
]);
if($response->getStatusCode() == 200 && $response->getBody()->item_id == $my_item_id)
    // Activate premium features

If you download a "nulled" version of an Envato purchase code verification script, you are not saving money—you are inviting disaster.

When a developer sells a product on the Envato Market (ThemeForest, CodeCanyon, etc.), they need a way to ensure that the user has actually bought the product. A verification script acts as a gatekeeper.

Typically, these scripts utilize the Envato API. Here is the standard workflow: