gh-auto-updater:具有适用于WordPress插件的GitHub API的自动更新器

时间:2021-02-03 01:44:06
【文件属性】:
文件名称:gh-auto-updater:具有适用于WordPress插件的GitHub API的自动更新器
文件大小:16KB
文件格式:ZIP
更新时间:2021-02-03 01:44:06
wordpress wordpress-plugin github-api composer GitHubAPIPHP 带有GitHub API的WordPress插件自动更新程序 GitHub上自托管WordPress插件的自动编写器库。 入门 1.更简单的安装方法是使用composer。 $ composer require miya/gh-auto-updater 2.在您的WordPress插件中激活自动更新。 <?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';
【文件预览】:
gh-auto-updater-master
----.gitignore(16B)
----src()
--------GH_Auto_Updater.php(8KB)
----bin()
--------install-wp-tests.sh(4KB)
----.travis.yml(327B)
----composer.json(385B)
----composer.lock(47KB)
----README.md(3KB)
----tests()
--------remote-version.json(3KB)
--------bootstrap.php(599B)
--------test-gh-auto-updater.php(7KB)
----phpunit.xml.dist(321B)

网友评论