All Projects → miya0001 → gh-auto-updater

miya0001 / gh-auto-updater

Licence: other
Automatic Updater with GitHub API for WordPress Plugin

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to gh-auto-updater

selene
A opinionated Wordpress base theme based on Sage.
Stars: ✭ 31 (-26.19%)
Mutual labels:  composer
HandlebarsCookbook
A cookbook of handlebars and mustache, focus on handlebars.js , mustache.js and lightncandy usage
Stars: ✭ 20 (-52.38%)
Mutual labels:  composer
generator-composer
🐘 Yeoman (http://yeoman.io) generator for a PHP Composer project
Stars: ✭ 16 (-61.9%)
Mutual labels:  composer
codeowners-validator
The GitHub CODEOWNERS file validator
Stars: ✭ 142 (+238.1%)
Mutual labels:  github-api
hacktoberfest-participants
🎃 A platform that showcases a list of all the hackers (including their stats), participated in the month-long challenge Hacktoberfest presented by DigitalOcean.
Stars: ✭ 38 (-9.52%)
Mutual labels:  github-api
guzzle-log-middleware
A Guzzle middleware to log request and responses automatically
Stars: ✭ 61 (+45.24%)
Mutual labels:  composer
cygnite-application
Cygnite PHP Framework- Skeleton Application
Stars: ✭ 26 (-38.1%)
Mutual labels:  composer
packagist
🐳 Dockette out-of-box Packagist (Nginx / Solr 6 / PHP 7.1+FPM)
Stars: ✭ 32 (-23.81%)
Mutual labels:  composer
pagination
Aplus Framework Pagination Library
Stars: ✭ 167 (+297.62%)
Mutual labels:  composer
tug
Private Composer registry for private PHP packages on AWS Serverless
Stars: ✭ 33 (-21.43%)
Mutual labels:  composer
github-explorer
Explore GitHub repositories - built with React.js and Styled Components.
Stars: ✭ 32 (-23.81%)
Mutual labels:  github-api
composer-normalize-action
+ 🎵 Provides a GitHub action for running ergebnis/composer-normalize.
Stars: ✭ 25 (-40.48%)
Mutual labels:  composer
composer-file-loader
Tool to load namespaces and classes from composer.json file without composer
Stars: ✭ 64 (+52.38%)
Mutual labels:  composer
SpringBoot-Examples
Spring boot 2.X version tutorial,Integrate various middleware to facilitate quick reference and use
Stars: ✭ 23 (-45.24%)
Mutual labels:  github-api
ubiquity-devtools
Command line tools for Ubiquity framework
Stars: ✭ 12 (-71.43%)
Mutual labels:  composer
telegram-github-search-bot
A Github search bot for Telegram
Stars: ✭ 67 (+59.52%)
Mutual labels:  github-api
license-checker-php
CLI tool to verify used licenses in composer dependencies
Stars: ✭ 28 (-33.33%)
Mutual labels:  composer
Phomeme
Simple sentence mixing tool (work in progress)
Stars: ✭ 18 (-57.14%)
Mutual labels:  github-api
acme2
Another PHP client for acme protocal (version 2) implementation, used for generating letsencrypt's free ssl certificates.
Stars: ✭ 45 (+7.14%)
Mutual labels:  composer
routing
Aplus Framework Routing Library
Stars: ✭ 186 (+342.86%)
Mutual labels:  composer

Automatic Updater with GitHub API for WordPress Plugin

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

A composer library for self-hosted WordPress plugin on GitHub with automatic update.

Getting Started

1. The easier way to install this is by using composer.

$ composer require miya/gh-auto-updater

2. Activate automatic update in your WordPress plugin.

<?php

// Autoload
require_once( dirname( __FILE__ ) . '/vendor/autoload.php' );

add_action( 'init', 'activate_autoupdate' );

function activate_autoupdate() {
	$plugin_slug = plugin_basename( __FILE__ ); // e.g. `hello/hello.php`.
	$gh_user = 'miya0001';                      // The user name of GitHub.
	$gh_repo = 'gh-auto-updater-example';       // The repository name of your plugin.

	// Activate automatic update.
	new Miya\WP\GH_Auto_Updater( $plugin_slug, $gh_user, $gh_repo );
}

3. GitHub Access Token (Optional)

You can use personal access token.

define( 'GITHUB_ACCESS_TOKEN', 'xxxxxxxx' );

How to update your plugin.

To release the new version, please do as follows:

1. Tag and push to GitHub.

$ git tag 1.1.0
$ git push origin 1.1.0
  • 1.0.0 is a version number, it have to be same with version number in your WordPress plugin.
  • You have to commit vendor directory in your plugin.

2. Release the new version.

  1. Please visit "releases" in your GitHub repository.
  2. Choose a tag.
  3. Fill out the release note and title.
  4. Upload your plugin which is comporessed with zip. (Optional)
  5. Press "Publish release".

Also, you can use automatic release.

Following is an example of the .travis.yml for automatic release.

https://github.com/miya0001/miya-gallery/blob/master/.travis.yml

You can generate deploy: section by The Travis Client like following.

$ travis setup releases

Example Projects

Please install old version of following projects, then you can see update notice.

These projects deploy new releases automatically with Travis CI.

$ travis setup releases

Please check .travis.yml and documentation.

Screenshots

Notification on "Plugins" screen in WordPress dashboard.

"Details" screen in WordPress dashboard. You can see release note on GitHub as changelog.

"WordPress Updates" screen.

License

GPL v2

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].