Download the PHP package aeliot/todo-registrar without Composer
On this page you can find all versions of the php package aeliot/todo-registrar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aeliot/todo-registrar
More information about aeliot/todo-registrar
Files in aeliot/todo-registrar
Package todo-registrar
Short Description Register TODOs from source code in issue tracker
License MIT
Informations about the package todo-registrar
It scans PHP and YAML source files for TODO/FIXME and other configured tags, registers them as issues in trackers such as JIRA or GitHub, and injects issue keys back into comments — with labels, linked issues, assignees, and other metadata as you configure.
Motivation
Developers often leave notes in code so they do not forget to fix something — and then forget anyway. One reason is that such comments are hard to manage centrally.
Why write a comment in code instead of creating an issue? It is convenient: no issue tracker UI, no repeated form filling, and the note sits exactly where the change is needed. Whatever the reason, those comments can stay in the codebase for years.
Someone has to manage them.
This tool registers issues with the parameters you need and injects ticket IDs/keys into the original comments. That prevents duplicate issues and makes it easy to jump from a tracker ticket to the right place in code.
How it works
- Detect a TODO (or other configured tag) in a comment.
- Create an issue in the issue tracker (list of supported).
- Inject the ticket key into the comment and save the source file.

See latest benchmark here.
According to benchmark TODO Registrar became quicker 20% since version 4.0.0.
Using
Basic usage:
- Create a configuration file.
- Run the CLI with the needed command line options.
- Commit updated files. You can configure a CI job to run the tool and commit changes automatically.
Prepared ways to run:
- TODO Registrar Action for GitHub repositories.
- Docker container.
- PHAR file.
- Composer package.
For GitHub-hosted repositories, the GitHub Action is the simplest option.
Docker provides a fully isolated environment — no dependency on your local PHP version or Composer packages.
A single PHAR file also avoids dependency conflicts, but you must match PHP version and extensions on the host.
The Composer package is the most common integration, but less flexible than Docker or PHAR.
Documentation references
- Processing flow — what happens on each run
- Features — index of all capabilities
- Command line options
- Configuration:
- General config
- Config format:
- YAML file
- PHP file
- YAML from STDIN
- Config format:
- Inline config
- Issue trackers:
- GitHub
- GitLab
- JIRA
- Redmine
- Yandex Tracker
- General config
- Supported formats of comments
- Integration on CI
- Customization
Supported Issue Trackers
| Issue Tracker | Description |
|---|---|
| See description of configuration. Supported via API tokens. | |
| See description of configuration. Supported via API tokens (HTTP Token or OAuth). | |
| See description of configuration. Supported via API tokens. | |
| See description of configuration. Supported via API keys or Basic Auth. | |
| See description of configuration. Supported via OAuth tokens. | |
| Other Issue Trackers | Request an implementation through the issues section or see customization section to do it yourself. |
GitHub Actions based on the project
- TODO Registrar Action — register issues and create Pull Request on GitHub.
- TODO Registrar Statistic Action — add sticky-comment Pull Request on GitHub with statistic about not registered TODOs code
Articles
RU: https://habr.com/ru/articles/832994/
Contributing
Read contributing instructions.
All versions of todo-registrar with dependencies
ext-ctype Version *
ext-mbstring Version *
ext-simplexml Version *
ext-tokenizer Version *
aeliot/env-resolver Version ^1.0.2
aeliot/todo-registrar-contracts Version ^3.0.0
aeliot/yaml-token Version 0.1.*
bugrov/yandex-tracker Version 0.1.0
guzzlehttp/guzzle Version ^7.9
http-interop/http-factory-guzzle Version ^1.2
kbsali/redmine-api Version ^2.8
knplabs/github-api Version ^3.14
lesstif/php-jira-rest-client Version ^5.8
m4tthumphrey/php-gitlab-api Version ^11.14
netresearch/jsonmapper Version ^4.2
nikic/php-parser Version ^5.7
psr/container Version ^2.0
psr/http-client Version ^1.0
symfony/config Version ^7.4
symfony/console Version ^7.4
symfony/dependency-injection Version ^7.4
symfony/deprecation-contracts Version ^3.6
symfony/finder Version ^5.4|^6.0|^7.0
symfony/validator Version ^7.4
symfony/yaml Version ^3.4|^4.0|^5.0|^6.0|^7.0