shazzad/github-plugin-updater 问题修复 & 功能扩展

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

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

shazzad/github-plugin-updater

最新稳定版本:0.0.3

Composer 安装命令:

composer require shazzad/github-plugin-updater

包简介

Helper library to implement wordpress plugin update from github repo.

README 文档

README

Helper library to implement wordpress plugin updates from github repository.

This implmenetation support both public and private repository.

Usage

Step 1:

Add a header (1,2,3) block named Requirements to your repository README.md file.

### Requirements

- WordPress: 6.0.1
- PHP: 7.4
- Tested: 6.0.2

Step 2:

Create a CHANGELOG.md file in you repo. Add change history with each version number.

#### 1.0.2 2021-04-03

- changed admin sliders default orderby to name.
- removed unused script file.

#### 1.0.1 2021-04-02

- updated code formatting.
- update stlyes.

Step 3:

Add this repository in your composer.json file.

"require": {
    "shazzad/github-plugin-updater": "dev-main"
}

Step 4:

Install dependecy using composer install or composer update command.

Step 5:

Add following code at the bottom of your plugin's main file.

if ( class_exists( '\Shazzad\GithubPlugin\Updater' ) ) {
     new \Shazzad\GithubPlugin\Updater(
        array(
            'file'         => __FILE__,
            // Name of the repo owner/organization
            'owner'        => 'shazzad',
            // Repository name
            'repo'         => 'wp-logs',
            // Set true if private repo
            'private_repo' => true,
            // Owner name is used on api key settings
            'owner_name'   => 'Shazzad'
        )
    );
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固