PHP code example of automattic / jetpack-licensing

1. Go to this page and download the library: Download automattic/jetpack-licensing 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/ */

    

automattic / jetpack-licensing example snippets


use Automattic\Jetpack\Licensing;

Licensing::instance()->initialize();

use Automattic\Jetpack\Licensing;

$licenses = array( 'license_key_1', 'license_key_2' );
$results  = Licensing::instance()->attach_licenses( $licenses );