Download the PHP package spiriitlabs/commit-history without Composer
On this page you can find all versions of the php package spiriitlabs/commit-history. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download spiriitlabs/commit-history
More information about spiriitlabs/commit-history
Files in spiriitlabs/commit-history
Download spiriitlabs/commit-history
More information about spiriitlabs/commit-history
Files in spiriitlabs/commit-history
Vendor spiriitlabs
Package commit-history
Short Description Fetch commit history from GitLab or GitHub repositories
License MIT
Package commit-history
Short Description Fetch commit history from GitLab or GitHub repositories
License MIT
Please rate this library. Is it a good library?
Informations about the package commit-history
Commit History Library
A framework-agnostic PHP library for fetching commit history from GitHub and GitLab repositories, with support for detecting dependency changes.
Features
- Fetch commit history from GitHub (including Enterprise) and GitLab (including self-hosted)
- Detect dependency changes in commits (Composer and npm)
- Year-based filtering with automatic pagination
- Support for private repositories via access tokens
- Fully typed with PHP 8.2+ readonly classes
Requirements
- PHP 8.2 or higher
Installation
Usage
Basic Setup with GitHub
Using GitLab
Detecting Dependency Changes
Enable dependency detection to flag commits that modify dependency files:
Available Methods
Contracts
HttpClientInterface
You must provide an implementation of HttpClientInterface:
Example implementation using Guzzle:
Data Objects
Commit
| Property | Type | Description |
|---|---|---|
id |
string |
Commit SHA (short) |
title |
string |
Commit message (first line) |
date |
DateTimeImmutable |
Commit date |
author |
string |
Author name |
url |
string |
URL to commit on GitHub/GitLab |
authorEmail |
?string |
Author email |
hasDependenciesChanges |
bool |
Whether commit modifies dependency files |
Extending
Adding a New Provider
- Create a
CommitParserimplementingCommitParserInterface - Create a provider implementing
ProviderInterface
Symfony Integration
For Symfony projects, use the SpiriitLabs Commit History Bundle which provides:
- Pre-configured service definitions
- Symfony HTTP client adapter
- Twig templates for rendering a timeline UI
- YAML/PHP configuration
License
MIT License. See LICENSE for details.
All versions of commit-history with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
The package spiriitlabs/commit-history contains the following files
Loading the files please wait ...