PHP code example of lapisense / wordpress-client

1. Go to this page and download the library: Download lapisense/wordpress-client 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/ */

    

lapisense / wordpress-client example snippets


use Lapisense\WordPressClient\Client;

// Licensed product
$lapisense = Client::init([
    'store_url'    => 'https://store.example.com',
    'product_uuid' => 'f47ac10b-58cc-4372-a567-0e02b2c3d479',
    'product_type' => 'plugin', // or 'theme'
    'file'         => __FILE__,
]);

$lapisense->activate($licenseKey);
$lapisense->deactivate();
$lapisense->isActivated();
$lapisense->getActivationStatus();