PHP code example of morningtrain / wp-plugin-updater

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

    

morningtrain / wp-plugin-updater example snippets


// plugin.php
train\WP\PluginUpdater\PluginUpdater(
    '[PLUGIN_INFO_JSON_URL]',
    '[PLUGIN_SLUG]',
    '[PLUGIN_BASE_NAME]',
    '[PLUGIN_VERSION]'
)