PHP code example of mehulgohil / updatesync

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

    

mehulgohil / updatesync example snippets


use UpdateSync\Updater;

'       => __FILE__,
		'slug'       => 'my-plugin',
		'version'    => '1.0.0',
		'github'     => [
			'username'     => 'github-owner',
			'repository'   => 'my-plugin',
			'access_token' => '', // Leave empty for public repositories.
		],
		'can_update' => true,
	]
);