PHPackages                             phly/changelog-generator - 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. phly/changelog-generator

AbandonedArchivedLibrary

phly/changelog-generator
========================

Generate Markdown changelogs from your GitHub milestones

v2.2.0(9y ago)8713.0k10[1 PRs](https://github.com/weierophinney/changelog_generator/pulls)BSD-2-ClausePHP

Since Jul 2Pushed 7y ago2 watchersCompare

[ Source](https://github.com/weierophinney/changelog_generator)[ Packagist](https://packagist.org/packages/phly/changelog-generator)[ RSS](/packages/phly-changelog-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

changelog\_generator.php
========================

[](#changelog_generatorphp)

This project provides a simple way to create a markdown ordered list of issues and pull requests closed with a given milestone on GitHub. It uses Zend Framework's `Zend\Http` component to communicate with the GitHub API, and `Zend\Console\Getopt` to handle CLI options parsing.

The script ensures that any special characters that might break the generated links are scrubbed and substituted with the corresponding HTML entities; as such, the script should be generally usable unattended.

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

[](#installation)

Use [Composer](https://getcomposer.org) to install dependencies:

```
php /path/to/composer.phar install
```

Alternately, you can compose it into an existing PHP application using Composer. Add the following to your `composer.json`:

```
{
    "require": {
        "phly/changelog-generator": "*"
    }
}
```

and either perform a `composer.phar install` or `composer.phar update`. This will install the script in `vendor/bin/changelog_generator.php`.

Usage
-----

[](#usage)

There are two primary ways to use the generator:

- Use CLI options to pass in configuration
- Create a configuration file, and pass that to the script

The standard CLI options are:

- **-t** or **--token**, to pass your GitHub API token
- **-u** or **--user**, to pass your GitHub username or organization
- **-r** or **--repo**, to pass your GitHub repository name
- **-m** or **--milestone**, to pass the identifier of the GitHub milestone for which to generate the changelog

As an example:

```
vendor/bin/changelog_generator.php -t MYgithubAPItoken -u weierophinney -r changelog_generator -m 1 > changelog.md
```

Alternately, create a configuration file. You can use `config/config.php.dist`as a template; it simply needs to return an array with the keys "token", "user", "repo", and "milestone". You then pass this to the script:

```
vendor/bin/changelog_generator.php -c path/to/config.php
```

You can also mix-and-match options -- for instance, you might place your token in a configuration file, and then pass the other options via CLI.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 64.9% 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 ~221 days

Recently: every ~332 days

Total

7

Last Release

3362d ago

Major Versions

v1.0.0 → v2.0.02013-07-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25943?v=4)[Matthew Weier O'Phinney](/maintainers/weierophinney)[@weierophinney](https://github.com/weierophinney)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (37 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (11 commits)")[![mikeSimonson](https://avatars.githubusercontent.com/u/907613?v=4)](https://github.com/mikeSimonson "mikeSimonson (5 commits)")[![asgrim](https://avatars.githubusercontent.com/u/496145?v=4)](https://github.com/asgrim "asgrim (2 commits)")[![joshribakoff](https://avatars.githubusercontent.com/u/4021306?v=4)](https://github.com/joshribakoff "joshribakoff (2 commits)")

---

Tags

githubchangelog

### Embed Badge

![Health badge](/badges/phly-changelog-generator/health.svg)

```
[![Health](https://phpackages.com/badges/phly-changelog-generator/health.svg)](https://phpackages.com/packages/phly-changelog-generator)
```

###  Alternatives

[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

2.9k404.0M698](/packages/league-commonmark)[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M67](/packages/hwi-oauth-bundle)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[php-coveralls/php-coveralls

PHP client library for Coveralls API

51413.7M3.4k](/packages/php-coveralls-php-coveralls)[ondram/ci-detector

Detect continuous integration environment and provide unified access to properties of current build

22249.4M33](/packages/ondram-ci-detector)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)

PHPackages © 2026

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