定制 jruedaq/php-github-issues-report 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

jruedaq/php-github-issues-report

Composer 安装命令:

composer require jruedaq/php-github-issues-report

包简介

Create a Github issue in a repository from PHP project

README 文档

README

GitHub repo size GitHub code size in bytes Packagist Downloads Packagist License Packagist Version Packagist PHP Version Support GitHub issues GitHub commit activity

PHP Github Issues Report

First steeps

Installation

composer require jruedaq/PHP-Github-issues-report

Basic use

Create Github personal access token

In Developer settings need create a personal access token and set repo permission

For private repositories use, set all repo permission

Create Github token

If need use only public repositories, set public_repo permission

Create Github token

Use library

In your php file call autoload.php

require 'vendor/autoload.php';

Call the function and pass the respective parameters

$issueNumber = PHPGithubIssuesReport::send($owner, $repo, $token, $title, $body);

Complete example

<?php

use jruedaq\GithubIssuesReport\PHPGithubIssuesReport;

require_once '../vendor/autoload.php';

$owner = 'Oneago';                                                          // User or company username
$repo = 'CanvasVoteSystem';                                                 // Repository name
$token = '870082df3998d104ba4164cb07217d5a734bb8fd';                        // Personal access token, get from {@link https://github.com/settings/tokens} with [repo] permission
$title = 'Testing a issue reporting from PHP';                              // Title for new issue
$body = 'This is a description text bellow title in github issues';         // Body description for new issue

try {
    $issueNumber = PHPGithubIssuesReport::send($owner, $repo, $token, $title, $body);
    echo "Created issue #$issueNumber";  // Display issue number
} catch (Exception $e) {
    echo $e->getMessage();
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固