Download the PHP package horde/githubapiclient without Composer
On this page you can find all versions of the php package horde/githubapiclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download horde/githubapiclient
More information about horde/githubapiclient
Files in horde/githubapiclient
Download horde/githubapiclient
More information about horde/githubapiclient
Files in horde/githubapiclient
Vendor horde
Package githubapiclient
Short Description Interact with the Github API from PHP code
License LGPL-2.1-only
Homepage https://www.horde.org
Package githubapiclient
Short Description Interact with the Github API from PHP code
License LGPL-2.1-only
Homepage https://www.horde.org
Please rate this library. Is it a good library?
Informations about the package githubapiclient
horde/githubapiclient
A horde/http based client for the GitHub REST API v3 and github related value objects.
Installation
Upgrading? See the Migration Guide for upgrading from earlier versions.
Quick Start
Features
Repository Management
- List repositories in an organization
- Get repository details
Pull Requests
- Create new pull requests
- List pull requests with filters (base branch, head ref, state)
- Get a single pull request with complete details
- Update pull request (title, body, base branch, state)
- Merge pull requests (merge, squash, or rebase)
- Close pull requests
- Reopen closed pull requests
Comments
- List all comments on a pull request
- Create a comment on a pull request
- Update existing comments
- Delete comments
Reviews
- List all reviews on a pull request
- Request reviewers (users and teams)
- Check review states (APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED)
Status Checks
- Get combined commit status
- List GitHub Actions check runs
- Monitor CI/CD pipeline status
Labels
- List labels on issues/pull requests
- Add labels to issues/pull requests
- Set (replace) all labels on issues/pull requests
- Remove labels from issues/pull requests
Rate Limiting
- Check current rate limit status
- Inspect OAuth token scopes
Detailed Usage
Working with Pull Requests
List Pull Requests
Get Pull Request Details
Create Pull Request
Update Pull Request
Merge Pull Request
Working with Comments
Working with Reviews
Working with Status Checks
Working with Labels
Rate Limiting and Token Information
Architecture
This library follows a Request Factory pattern:
- Value Objects: Immutable data classes (
GithubPullRequest,GithubComment, etc.) - Factories: Create value objects from API responses
- Request Factories: Build PSR-7 HTTP requests for each API endpoint
- Collections: Typed collections implementing
IteratorandCountable - DTOs: Data Transfer Objects for complex request parameters
All classes use PHP 8.2+ features including:
- Named parameters
- Readonly properties
- Strict types
- Constructor property promotion
Testing
Requirements
- PHP 8.2 or higher
- PSR-18 HTTP Client implementation
- PSR-7 HTTP Message implementation
- PSR-17 HTTP Factories implementation
License
See the enclosed file LICENSE for license information (LGPL 2.1).
Contributing
This package follows PER-1 coding standards with strict type declarations.
All commits should follow the Conventional Commits specification:
feat:- New featuresfix:- Bug fixesdocs:- Documentation changestest:- Test additions or modificationsrefactor:- Code refactoringchore:- Maintenance tasks
Additional Documentation
- API Reference - Complete API documentation for all classes and methods
- Migration Guide - Guide for upgrading from earlier versions
bin/demo-client.php- Working examples of all features
All versions of githubapiclient with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
horde/http Version * || dev-FRAMEWORK_6_0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^2.0
horde/http Version * || dev-FRAMEWORK_6_0
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^2.0
The package horde/githubapiclient contains the following files
Loading the files please wait ...