You can use Composer or simply Download the Release
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:
composer require appcheap/license:^1.0
Finally, autoloader library in your main plugin file like this:
require_once __DIR__ . '/vendor/autoload.php';
$client = new Appcheap\Client([
'identify' => 'app-builder',
'base_uri' => 'https://verify.appcheap.io/api/v1',
'plugin_file' => __FILE__,
]);
$plugin = new Appcheap\Plugin($client);
$plugin->run();
$verify = new Appcheap\Verify( $client );
$license_page = $verify->registerLicensePage(
array(
'parent_slug' => 'options-general.php',
'page_title' => 'License',
'menu_title' => 'License',
'menu_slug' => 'appcheap-license',
)
);
$verify = new Appcheap\Verify( $client );
$verify->registerRestApi(
array(
'namespace' => 'appcheap/v1',
'route' => '/license',
)
);