PHPackages                             eiriksm/git-log-format - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eiriksm/git-log-format

Abandoned → [violinist-dev/git-log-format](/?search=violinist-dev%2Fgit-log-format)Library[Utility &amp; Helpers](/categories/utility)

eiriksm/git-log-format
======================

Format changelog-like git logs

1.0.0(7y ago)11.1k2PHPCI passing

Since Jul 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/eiriksm/git-log-format)[ Packagist](https://packagist.org/packages/eiriksm/git-log-format)[ RSS](/packages/eiriksm-git-log-format/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (3)Versions (3)Used By (0)

git-log-format
==============

[](#git-log-format)

[![Packagist](https://camo.githubusercontent.com/e111e1a442e82f7a7d6f393880ab9fddb994a205ab1c9289e72423c7a30f5eee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76696f6c696e6973742d6465762f6769742d6c6f672d666f726d61742e7376673f6d61784167653d33363030)](https://packagist.org/packages/violinist-dev/git-log-format)[![Packagist](https://camo.githubusercontent.com/99b50eb546827ed9141e6e3fd697a74bc6f60daf9873c55e9de2091e846c1c9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f76696f6c696e6973742d6465762f6769742d6c6f672d666f726d61742e7376673f6d61784167653d33363030)](https://packagist.org/packages/violinist-dev/git-log-format)[![Coverage Status](https://camo.githubusercontent.com/9981c00040c9ec12b03e2a4abe3c59d704a1fbf88fc46bbdfa581d9ad291e4bb/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76696f6c696e6973742d6465762f6769742d6c6f672d666f726d61742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/violinist-dev/git-log-format?branch=master)[![Violinist enabled](https://camo.githubusercontent.com/d9732258721280d90f7f95b5f928ea5c63eb6d3d740151d62e4a9ad1660d95d3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76696f6c696e6973742d656e61626c65642d627269676874677265656e2e737667)](https://violinist.io)

A convenience package to get formatted versions of the output of git log --oneline.

This is part of what powers the changelogs in the messages from Violinist.io.

Installation
------------

[](#installation)

```
composer require violinist-dev/git-log-format
```

Usage
-----

[](#usage)

Somehow get a string output from a git log. A command line way to do so is the following:

```
git log abababa..fefefef --oneline
```

In the above example, abababa and fefefef are both hashes in the commit history.

The output would be somewhat like this:

```
fefefef Fix bugs and add tests
cdcdcdc Release features and probably introduce bugs

```

Then, pass the output to this package:

```
$data = \Violinist\GitLogFormat\ChangeLogData::createFromString('fefefef Fix bugs and add tests
cdcdcdc Release features and probably introduce bugs');
// Now add some info about what the source of the log is. Like so:
$data->setGitSource('https://github.com/myname/mypackage');
// Then get convenient output back, with links to the actual commits:
print $data->getAsMarkdown();
// Prints:
// - [fefefef](https://github.com/myname/mypackage/commit/fefefef) `Fix bugs and add tests`
// - [cdcdcdc](https://github.com/myname/mypackage/commit/cdcdcdc) `Release features and probably introduce bugs`
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance61

Regular maintenance activity

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~558 days

Total

2

Last Release

2662d ago

Major Versions

0.0.1 → 1.0.02019-01-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/012259317b9e5a3b6cc2b03681d852940e11ac05f37bfbda7360d6524b1c9085?d=identicon)[eiriksm](/maintainers/eiriksm)

---

Top Contributors

[![eiriksm](https://avatars.githubusercontent.com/u/865153?v=4)](https://github.com/eiriksm "eiriksm (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![zaporylie](https://avatars.githubusercontent.com/u/1690685?v=4)](https://github.com/zaporylie "zaporylie (2 commits)")[![truls1502](https://avatars.githubusercontent.com/u/913581?v=4)](https://github.com/truls1502 "truls1502 (1 commits)")

---

Tags

composercomposer-packagedrupalgitgithubphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/eiriksm-git-log-format/health.svg)

```
[![Health](https://phpackages.com/badges/eiriksm-git-log-format/health.svg)](https://phpackages.com/packages/eiriksm-git-log-format)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
