1. Go to this page and download the library: Download rozmarbeka/paddle-php-api 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/ */
rozmarbeka / paddle-php-api example snippets
$api = new \Paddle\Api();
$api->authorize_vendor($vendor_id, $vendor_auth_code);
$api->set_timeout(60);
$api = new \Paddle\Api($vendor_id, $vendor_auth_code, 60);
// define $vendor_id and $vendor_auth_code first
$api = new \Paddle\Api($vendor_id, $vendor_auth_code, 60);
$product_id = 100;
$license_code = $api->generate_license($product_id);