{"id":17327737,"url":"https://github.com/harryitz/pluginupdater","last_synced_at":"2025-10-08T19:42:39.436Z","repository":{"id":57680869,"uuid":"489968258","full_name":"harryitz/PluginUpdater","owner":"harryitz","description":"A library that automatically updates the plugin in poggit","archived":false,"fork":false,"pushed_at":"2022-05-19T05:07:49.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T21:55:04.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harryitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-08T14:35:07.000Z","updated_at":"2022-05-26T08:59:30.000Z","dependencies_parsed_at":"2022-09-01T14:52:22.551Z","dependency_job_id":null,"html_url":"https://github.com/harryitz/PluginUpdater","commit_stats":null,"previous_names":["taylordevs/pluginupdater","taylordev47/pluginupdater","andrew47-c/pluginupdater","harryz205/pluginupdater","harryitz/pluginupdater"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harryitz%2FPluginUpdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harryitz%2FPluginUpdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harryitz%2FPluginUpdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harryitz%2FPluginUpdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harryitz","download_url":"https://codeload.github.com/harryitz/PluginUpdater/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245785813,"owners_count":20671634,"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","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":[],"created_at":"2024-10-15T14:20:58.701Z","updated_at":"2025-10-08T19:42:34.415Z","avatar_url":"https://github.com/harryitz.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003ePluginUpdater\u003cimg src=\"icon.png\" height=\"64\" width=\"64\" align=\"left\"\u003e\u003c/img\u003e\u0026nbsp;\n\u003cimg src=\"https://poggit.pmmp.io/ci.shield/DavidGlitch04/PluginUpdater/~\"\u003e\u003c/img\u003e\u003c/h1\u003e\n\u003cbr /\u003e\n\nA PocketMine-MP Virion for automatically updates the plugin in poggit.\n\n# Usage:\n\nInstallation is easy, you may get a compiled phar [here](https://poggit.pmmp.io/ci/DavidGlitch04/PluginUpdater/~), integrate the virion itself into your plugin or you could also use it as a composer library by running the command below:\n\n`composer require davidglitch04/pluginupdater`\n\n### Configuration\nTo have the plugin automatically update when a new update is available, copy the following to your defaults `config.yml`.\n\n```yaml\nAutoUpdater:\n  # Current version of the plugin\n  \"version\": \"1.0.0-beta\"\n  # Link to get new update information\n  \"url\": \"https://raw.githubusercontent.com/\u003cUsername\u003e/\u003cRepositories\u003e/\u003cBranches\u003e/poggit_news.json\"\n  # This section helps users to turn off autoupdate\n  \"enable\": true\n```\n### Update information\nIn order for the plugin to automatically download new plugin updates, create a file `poggit_news.json` in the repositories.\n\n```json\n{\n  \"version\": \"1.0.0\",\n  \"time\": 1652576220,\n  \"link\": \"Release link\",\n  \"download_link\": \"Download link\",\n  \"patch_notes\": \"Note of new version\"\n}\n```\n\"version\" is the latest version of the plugin \u003c/br\u003e\n\"time\" is time to release a new version\u003c/br\u003e\n\"link\" is the link of the new version\n\"download_link\" is the link for the plugin to download the update, for example: `https://poggit.pmmp.io/r/175835/iLand_dev-66.phar` \u003c/br\u003e\n\"patch_notes\" is the information of the new version\n\n### Initialization and Finalization\n\n```php\nuse pocketmine\\plugin\\PluginBase;\nuse davidglitch04\\PluginUpdater\\PluginUpdater;\n\nclass Main extends PluginBase\n{\n    public function onEnable() : void{\n        $PluginUpdater = PluginUpdater::checkUpdate($this, $this-\u003egetConfig()-\u003eget(\"AutoUpdater\"));\n        $PluginUpdater-\u003echeck();\n    }\n    \n    public function getPathFile() : string{\n\t\treturn $this-\u003egetFile();\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharryitz%2Fpluginupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharryitz%2Fpluginupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharryitz%2Fpluginupdater/lists"}