PHP code example of shazzad / plugin-updater

1. Go to this page and download the library: Download shazzad/plugin-updater 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/ */

    

shazzad / plugin-updater example snippets



if ( class_exists( \Shazzad\PluginUpdater\V4\Integration::class ) ) {
    new \Shazzad\PluginUpdater\V4\Integration( [
        'api_url'     => 'https://w4dev.com/wp-json/wp-repo/v4',
        'file'        => __FILE__,
        'product_uid' => 'prod_xxxxxxxxxxxxxxxxxxxx',
        'license'     => true,
    ] );
}