cslant/github-project-php 问题修复 & 功能扩展

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

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

cslant/github-project-php

最新稳定版本:v2.0.0

Composer 安装命令:

composer require cslant/github-project-php

包简介

A PHP package for managing GitHub projects with Laravel

README 文档

README

github-project-php-example

License Latest Version Total Downloads Test Status Code Style Status

Introduction

GitHub Project PHP is a Laravel package that helps you manage your GitHub Projects (V2) in PHP.

It provides a simple webhook system to receive GitHub project events and automatically generate activity comments on issues and pull requests.

Features

  • Webhook Integration: Receive and process GitHub Projects V2 webhook events
  • Queue Support: Process webhook events asynchronously for better performance
  • API Endpoint: Generate comment messages via REST API
  • 12+ Field Type Templates: Built-in templates for all GitHub Project field types
  • Customizable Templates: Publish and customize Blade templates
  • GitHub GraphQL API: Direct integration with GitHub's GraphQL API

Requirements

Installation

composer require cslant/github-project-php

Available Field Type Templates

Field Type Description
text Simple text fields
number Numeric fields
date Date fields (Y-m-d format)
single_select Single-select dropdowns with color support
multi_select Multi-select fields
checkbox Boolean/toggle fields
textarea Long text content with diff view
iteration Iteration/sprint fields
labels Label/tag fields
assignees User assignment fields
milestone Milestone tracking
unsupported Fallback for unknown field types

Usage

See the GitHub Project PHP Documentation for detailed usage instructions.

Customizing Templates

php artisan vendor:publish --provider="CSlant\GitHubProject\GithubProjectServiceProvider" --tag="views"

This copies templates to resources/views/vendor/github-project/md/field_types/.

Template Variables

All field type templates receive:

  • $fieldName - Display name of the field
  • $fieldType - Type of the field
  • $fromValue - Previous value
  • $toValue - New value
  • $fieldData - Raw webhook data

API Endpoint

Generate comment messages via API:

POST /github-project/generate-comment
Content-Type: application/json

{
  "payload": { ... }
}

Queue Configuration

Enable queue processing in your config:

// config/github-project.php
'is_queue_enabled' => true,

Documentation

Full documentation available at docs.cslant.com/github-project-php

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固