PHP code example of shazzad / github-plugin-updater
1. Go to this page and download the library: Download shazzad/github-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 / github-plugin-updater example snippets
if ( class_exists( '\Shazzad\GithubPlugin\Updater' ) ) {
new \Shazzad\GithubPlugin\Updater(
array(
'file' => __FILE__,
// Name of the repo owner/organization
'owner' => 'shazzad',
// Repository name
'repo' => 'wp-logs',
// Set true if private repo
'private_repo' => true,
// Owner name is used on api key settings
'owner_name' => 'Shazzad'
)
);
}