fast-forward / changelog
Self-contained changelog CLI and automation for Fast Forward PHP packages.
Requires (Dev)
- composer-runtime-api: ^2.2
- ext-simplexml: *
- container-interop/service-provider: ^0.4.1
- fast-forward/clock: ^1.1.3
- fast-forward/config: ^1.7.4
- fast-forward/container: ^1.10.1
- fast-forward/phpdoc-bootstrap-template: ^2.2.4
- league/commonmark: ^2.10.7
- llm/skills: ^1.17.0
- nikic/php-parser: ^5.9.0
- phpdocumentor/shim: ^3.10.0
- phpspec/prophecy: ^1.26.1
- phpspec/prophecy-phpunit: ^2.5.0
- phpstan/phpdoc-parser: ^2.4.1
- phpunit/php-code-coverage: ^12.5.8
- phpunit/phpunit: ^12.5.44
- psr/clock: ^1.0.0
- psr/container: ^2.0.2
- rector/rector: ^2.8.4
- symfony/console: ^7.4.23
- symfony/filesystem: ^7.4.23
- symfony/finder: ^7.4.23
- symfony/http-client: ^7.4.23
- symfony/lock: ^7.4.23
- symfony/polyfill-php84: ^1.43.0
- symfony/polyfill-php85: ^1.44.0
- symfony/process: ^7.4.22
- symfony/translation-contracts: ^3.8.1
- symfony/validator: ^7.4.23
- symfony/yaml: ^7.4.23
- symplify/easy-coding-standard: ^13.3.17
- thecodingmachine/safe: ^3.4.0
Suggests
- llm/skills: Optionally synchronize the bundled agent skill in consumer projects.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-28 17:43:57 UTC
README
Independent Markdown fragments, automated PR checks and a reviewed version PR
for PHP packages. Contributors add .changelog/*.md; the version workflow
collects them into CHANGELOG.md and removes the consumed fragments.
The package is in 0.x development. Public interfaces may change before 1.0; review release notes and integration contracts before upgrading.
🤖 GitHub Actions
Use guided setup with the compiled CLI to choose the release
branch, publication behavior and optional agent skill, then review the generated
workflow. Existing integrations are preserved. For manual setup, create
.github/workflows/changelog.yml:
name: Changelog on: pull_request: branches: [main] types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] pull_request_target: branches: [main] types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled, closed] push: branches: [main] workflow_dispatch: permissions: {} jobs: changelog: permissions: contents: write pull-requests: write issues: read statuses: write uses: php-fast-forward/changelog/.github/workflows/changelog.yml@v0 with: base-branch: main source: tags comment-mode: always prepare-release: true publish: true
The v0 branch follows published 0.x releases, including potentially breaking
minor updates. Select a full release tag or SHA when you need a fixed revision.
The example states publication intent explicitly so it also works with releases
whose default was disabled. The defaults below describe this source revision;
verify the documentation at your selected ref before adoption.
Each contribution PR adds a fragment. This workflow checks it, updates one PR
comment and creates notes for Dependabot updates. After contributions merge,
it prepares changelog/version: review that PR to update the central history
and remove the consumed fragments. The workflow never merges it for you.
Main settings
All lifecycle inputs are optional. These are the main defaults:
| Input | Default | Purpose |
|---|---|---|
base-branch |
Repository default branch | Release line; match the caller's event filters. |
fragment-directory |
.changelog |
Pending Markdown fragments. |
changelog-file |
CHANGELOG.md |
Consolidated version history. |
comment-mode |
always |
Sticky PR feedback: always, on-failure or never. |
prepare-release |
true |
Create or refresh the version PR after base pushes. |
publish |
true |
Publish the approved version PR's tag/release after merge. Set false for a pilot. |
version-pr-title |
chore(release): {repository} v{current_version} → v{next_version} |
Supports {repository}, {repository_name}, {current_version} and {next_version}. |
runs-on |
'["ubuntu-latest"]' |
Linux runner labels as JSON; Bash and Git are required; Actions provision PHP. |
See the complete workflow and Action reference
for every input, type, default, secret, output and permission. The
lifecycle guide explains event handling and
individual recipes cover custom composition.
For another release branch, adjust both event filters and base-branch.
See setup and event policies
before adoption.
Your project needs no PHP or Composer installation for automation. The default token needs the repository's Actions PR-creation permission; use an optional GitHub App when generated PRs need automatic downstream CI. Review the approved-merge publication contract before merging the generated version PR.
For an optional validation-only trial, add publish: false to with. Merging
the version PR then updates history without creating a tag or GitHub release;
later version PRs continue from that recorded version. Remove the override when
you want normal automatic publication.
🛠️ CLI
Use PHP ^8.3 with Phar and zlib, Git and Composer. Install it as a development dependency;
Composer exposes its ready-built PHAR at vendor/bin/changelog:
composer require --dev fast-forward/changelog
vendor/bin/changelog add \
"Fixes Markdown parsing." --category=fixed --no-interaction
vendor/bin/changelog check --no-interaction
The commands create one fragment and validate pending notes; no init or consumer
build is needed. All runtime libraries are embedded and do not constrain the application's
Composer graph. PHP services are development-source APIs, not exported by
the consumer package.
See local setup, global installation and scripts and the
command reference. GitHub Actions run the same compiled CLI directly.
🧠 Agent skill
Manage project instructions from GitHub with llm/skills:
composer require --dev llm/skills composer skills:init composer skills:add php-fast-forward/changelog
Approve only the intended Composer plugin. Version skills.json and the intended
manifest/lock changes under the project's policy; ignore the generated .agents/
directory and exclude it from archives. With auto-sync enabled,
composer install reconstructs the instructions.
The Changelog package is not a project dependency for this route.
The project installer offers the same setup. The skill guide explains ownership, updates, NPX as an optional alternative and legacy native copies. Installing instructions does not activate an agent session; the skill consults the selected runtime's help and documentation.
🔌 Further integration
Use the optional Composer/PHP integration for classes inside an existing application, or individual actions for custom automation. Localized headings and trusted PHP templates are covered in history and templates.
🤝 Contributing
See CONTRIBUTING.md and this repository's own changelog flow.
Add one fragment per observable change and run composer check before a PR.
🛡 License
MIT © 2026 Felipe Sayao Lobato Abreu. See LICENSE.
🔗 Links
Documentation · Packagist · Issues · Support · Security · Code of Conduct
