{"id":15046106,"url":"https://github.com/miya0001/gh-auto-updater","last_synced_at":"2025-10-25T20:31:51.880Z","repository":{"id":57017922,"uuid":"80905124","full_name":"miya0001/gh-auto-updater","owner":"miya0001","description":"Automatic Updater with GitHub API for WordPress Plugin","archived":false,"fork":false,"pushed_at":"2018-03-11T07:27:21.000Z","size":75,"stargazers_count":45,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T10:11:24.447Z","etag":null,"topics":["composer","github-api","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miya0001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-04T08:18:31.000Z","updated_at":"2024-10-09T19:00:49.000Z","dependencies_parsed_at":"2022-08-22T11:31:20.860Z","dependency_job_id":null,"html_url":"https://github.com/miya0001/gh-auto-updater","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/miya0001/gh-auto-updater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miya0001%2Fgh-auto-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miya0001%2Fgh-auto-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miya0001%2Fgh-auto-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miya0001%2Fgh-auto-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miya0001","download_url":"https://codeload.github.com/miya0001/gh-auto-updater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miya0001%2Fgh-auto-updater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281015711,"owners_count":26430134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","github-api","wordpress","wordpress-plugin"],"created_at":"2024-09-24T20:52:42.904Z","updated_at":"2025-10-25T20:31:51.648Z","avatar_url":"https://github.com/miya0001.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automatic Updater with GitHub API for WordPress Plugin\n\n[![Build Status](https://travis-ci.org/miya0001/gh-auto-updater.svg?branch=master)](https://travis-ci.org/miya0001/gh-auto-updater)\n[![Latest Stable Version](https://poser.pugx.org/miya/gh-auto-updater/v/stable)](https://packagist.org/packages/miya/gh-auto-updater)\n[![Total Downloads](https://poser.pugx.org/miya/gh-auto-updater/downloads)](https://packagist.org/packages/miya/gh-auto-updater)\n[![Latest Unstable Version](https://poser.pugx.org/miya/gh-auto-updater/v/unstable)](https://packagist.org/packages/miya/gh-auto-updater)\n[![License](https://poser.pugx.org/miya/gh-auto-updater/license)](https://packagist.org/packages/miya/gh-auto-updater)\n\nA composer library for self-hosted WordPress plugin on GitHub with automatic update.\n\n## Getting Started\n\n### 1. The easier way to install this is by using composer.\n\n```\n$ composer require miya/gh-auto-updater\n```\n\n### 2. Activate automatic update in your WordPress plugin.\n\n```\n\u003c?php\n\n// Autoload\nrequire_once( dirname( __FILE__ ) . '/vendor/autoload.php' );\n\nadd_action( 'init', 'activate_autoupdate' );\n\nfunction activate_autoupdate() {\n\t$plugin_slug = plugin_basename( __FILE__ ); // e.g. `hello/hello.php`.\n\t$gh_user = 'miya0001';                      // The user name of GitHub.\n\t$gh_repo = 'gh-auto-updater-example';       // The repository name of your plugin.\n\n\t// Activate automatic update.\n\tnew Miya\\WP\\GH_Auto_Updater( $plugin_slug, $gh_user, $gh_repo );\n}\n```\n\n### 3. GitHub Access Token (Optional)\n\nYou can use [personal access token](https://github.com/settings/tokens).\n\n```\ndefine( 'GITHUB_ACCESS_TOKEN', 'xxxxxxxx' );\n```\n\n## How to update your plugin.\n\nTo release the new version, please do as follows:\n\n### 1. Tag and push to GitHub.\n\n```\n$ git tag 1.1.0\n$ git push origin 1.1.0\n```\n\n* `1.0.0` is a version number, it have to be same with version number in your WordPress plugin.\n* You have to commit `vendor` directory in your plugin.\n\n### 2. Release the new version.\n\n1. Please visit \"releases\" in your GitHub repository.\n2. Choose a tag.\n3. Fill out the release note and title.\n4. Upload your plugin which is comporessed with zip. (Optional)\n5. Press \"Publish release\".\n\nAlso, you can use [automatic release](https://docs.travis-ci.com/user/deployment/releases/).\n\nFollowing is an example of the `.travis.yml` for automatic release.\n\nhttps://github.com/miya0001/miya-gallery/blob/master/.travis.yml\n\nYou can generate `deploy:` section by [The Travis Client](https://github.com/travis-ci/travis.rb) like following.\n\n```\n$ travis setup releases\n```\n\n## Example Projects\n\nPlease install old version of following projects, then you can see update notice.\n\n* https://github.com/miya0001/self-hosted-wordpress-plugin-on-github\n* https://github.com/miya0001/miya-gallery\n\nThese projects deploy new releases automatically with Travis CI.\n\n```\n$ travis setup releases\n```\n\nPlease check `.travis.yml` and [documentation](https://docs.travis-ci.com/user/deployment/releases/).\n\n## Screenshots\n\nNotification on \"Plugins\" screen in WordPress dashboard.\n\n![](https://www.evernote.com/l/ABWSJIw142RMkpfNrYPVpqlRYGSwTvX4QDAB/image.png)\n\n\"Details\" screen in WordPress dashboard. You can see release note on GitHub as changelog.\n\n![](https://www.evernote.com/l/ABVxHaSGVRJJR7mi0ooGSXc-v-DPIPLcyJIB/image.png)\n\n\"WordPress Updates\" screen.\n\n![](https://www.evernote.com/l/ABV7s-EVtNJOF5JDVxi-rkwShYRtGhs2wlgB/image.png)\n\n## License\n\nGPL v2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiya0001%2Fgh-auto-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiya0001%2Fgh-auto-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiya0001%2Fgh-auto-updater/lists"}