ernilambar/gitvise 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ernilambar/gitvise

最新稳定版本:1.0.0

Composer 安装命令:

composer require ernilambar/gitvise

包简介

WordPress plugin updater from GitHub releases

README 文档

README

WordPress PHP library for plugin updates from GitHub releases: uses the latest release tag as the version and the release ZIP (or zipball) as the package.

Requirements: PHP 7.4+, WordPress 5.0+

Installation

composer require ernilambar/gitvise

In your plugin, load the library via its entry point:

require_once __DIR__ . '/vendor/ernilambar/gitvise/init.php';

Usage

use Nilambar\Gitvise\Updater;

$updater = new Updater( 'your-github-user/your-repo-name', __FILE__ );
$updater->init();

Optional: Third argument = custom update slug (when plugin dir name differs from desired slug). Fourth argument = GitHub personal access token (for higher API rate limit).

$updater = new Updater( 'user/repo', __FILE__, 'repo-slug', 'ghp_your_token' );
$updater->init();

How it works

On each update check, the library fetches the latest release from the GitHub API, compares the tag (e.g. v1.2.31.2.3) with the installed version from WordPress’s transient, and populates the update with the first ZIP asset or the zipball URL. The plugins_api filter is handled so “View details” shows release info.

License

MIT. See LICENSE.

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固