PHP code example of afragen / git-updater-lite
1. Go to this page and download the library: Download afragen/git-updater-lite 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/ */
afragen / git-updater-lite example snippets
( new \Fragen\Git_Updater\Lite( __FILE__ ) )->run();
/**
* Plugin Name: Test Plugin Git Updater Lite
* Plugin URI: https://github.com/afragen/test-plugin-gu-lite/
* Description: This plugin is used for testing functionality of Github updating of plugins.
* Version: 0.2.0
* Author: Andy Fragen
* License: MIT
* Requires WP: 6.6
* Requires PHP: 8.0
* Update URI: https://git-updater.com
*/
/**
* Exit if called directly.
*/
if ( ! defined( 'WPINC' ) ) {
die;
}