PackageTrack
Sign in Get early access

consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

4.10.5 76M downloads/mo #583 most downloaded on Packagist consolidation/annotated-command

What this package is like to depend on

Last release 4 months ago

29 Mar 2026

Release timing varies

gaps range from 2 weeks to 8 months

Most releases are documented

notes for 72 of 119 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

145 releases · first in 2016

3 releases in the last 12 months

see the full history below

Release timeline

145 releases · Mar 2016 to Mar 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 145
  1. 5.0.0-beta1 28 Feb 2023 pre-release
    Release notes
    • Creating beta release of 5.x branch
    Open source →
  2. 4.10.5 29 Mar 2026
    Release notes
    • Support Symfony 8
    Open source →
  3. 4.10.4 14 Nov 2025

    Nothing published for this version

  4. 4.10.3 14 Nov 2025
    Release notes
    • PHP 8.5 support
    Open source →
  5. 4.10.2 16 Jul 2025
    Release notes
    • Fix a PHP 8.4 deprecation (fputcsv default args).
    Open source →
  6. 4.10.1 13 Dec 2024
    Release notes
    • Support PHP 8.4
    Open source →
  7. 4.10.0 05 Apr 2024
    Release notes
    • Support Symfony 7
    Open source →
  8. 4.9.2 26 Dec 2023
    Release notes
    • Avoid infinite loop in \Consolidation\AnnotatedCommand\Parser\CommandInfo::getName (#306)
    Open source →
  9. 4.9.1 20 May 2023
    Release notes

    Changelog for 4.9.1 (fixes regression in 4.9.0)

    Open source →
    Release notes
    • Inject command metadata: make AnnotationData and FormatterOptions available (#301)
    • Only call setHidden() if value is true. (#299)
    Open source →
  10. 4.9.0 20 May 2023

    Nothing published for this version

  11. 4.8.2 11 Mar 2023
    Release notes
    • Fix bug with simple options with dashes in their names. (#295)
    • Add new public ->addOption() method (#294)
    • Attributes - Topic needs path (#293)
    • More robust hook attribute, and misc (#291)
    Open source →
  12. 4.8.1 28 Feb 2023

    Nothing published for this version

  13. 4.8.0 28 Feb 2023
    Release notes
    • Add HookSelector attribute and adjust Hook attribute accordingly (#290)
    • Allow for just one param to be passed in Help and Topics Attributes (#289)
    Open source →
  14. 4.7.1 06 Dec 2022
    Release notes
    • PHP 8.2 fixes
    Open source →
  15. 4.7.0 22 Nov 2022
    Release notes
    • Allow command help and descriptions to be defined via docblock comments (#281)
    • Fix hidden via Attribute (#283)
    • Fix command completion (#282)
    Open source →
  16. 4.6.1 09 Nov 2022
    Release notes
    • Use Attributes to set suggestedValues for arg/option completion (#275)
    • Default value and therefore data type of parameter-defined cli options was being dropped (#280)
    • Make nullable properties in Attributes actually nullable (#278)
    • Only ignore commands in parent classes if flag is set (reverts backwards-compatibility break) (#277)
    Open source →
  17. 4.6.0 30 Oct 2022
    Release notes
    • Add support for command completion (#274)
    Open source →
  18. 4.5.7 20 Oct 2022
    Release notes
    • Stop loading commands from inherited classes (#273)
    Open source →
  19. 4.5.6 22 Jun 2022
    Release notes
    • PHP 8.2 compatibility: dynamic properties are deprecated (#271)
    Open source →
  20. 4.5.5 26 Apr 2022
    Release notes
    • No functional change; new release to fix false positives in b/c check caused by lockfile problem.
    Open source →
  21. 4.5.4 05 Apr 2022
    Release notes
    • Allow psr/log ^3
    Open source →
  22. 4.5.3 02 Apr 2022
    Release notes
    • Check the type of the reflection object before attempting to call isBuiltin(). (#265)
    Open source →
  23. 4.5.2 20 Feb 2022
    Release notes
    • Do not pass null to Symfony Command methods (#262)
    • CommandResult inheritance (#260)
    Open source →
  24. 4.5.1 30 Dec 2021
    Release notes
    • PHP 8.1
    Open source →
  25. 4.5.0 27 Dec 2021
    Release notes
    • Symfony 6 / Symfony 5.2 compatibility
    • Make addUsageOrExample() public
    Open source →
  26. 4.4.0 30 Sep 2021
    Release notes
    • Add support for providing command information via php8 Attributes. (#239)
    Open source →
  27. 4.3.3 27 Sep 2021
    Release notes
    • Back out change from 4.3.2. Will restore in 4.4.0, but with a switch that defaults to "off" (backwards-compatible).
    Open source →
  28. 4.3.2 19 Sep 2021
    Release notes
    • Less parsing by ignoring Traits and IO.php (for Drush) (#237)
    Open source →
  29. 4.3.1 30 Aug 2021
    Release notes
    • Fix bc break in 4.3.0. (#232)
    Open source →
  30. 4.3.0 28 Aug 2021
    Release notes
    • Allow options to be passed in as regular method parameters. (#224)
    Open source →
  31. 4.2.4 10 Dec 2020
    Release notes
    • PHP 8
    Open source →
  32. 4.2.3 03 Oct 2020
    Release notes
    • Add ability to ignore methods using regular expressions. (#212)
    Open source →
  33. 4.2.2 30 Sep 2020
    Release notes
    • PHP 8 / Composer 2 support (#210)
    • Add @ignored-command annotation. (#211)
    • Address deprecation of ReflectionType::getClass() (#209)
    Open source →
  34. 4.2.1 30 Aug 2020
    Release notes
    • Give command handlers the ability to save and restore their state (#208)
    • Do not inject $input and $output into the command instance unless it supports saving and restoring state.
    Open source →
  35. 4.2.0 27 Aug 2020
    Release notes

    DEPRECATED RELEASE. Do not use.

    • Inject $input and $output into the command instance if it is set up to receive them. (#207)
    Open source →
  36. 4.1.1 27 May 2020
    Release notes
    • Fix bugs with Symfony 5. (#204)
    Open source →
  37. 4.1.0 07 Feb 2020
    Release notes
    • Test with PHP 7.4.
    Open source →
  38. 4.0.0 29 Oct 2019
    Release notes
    • Compatible with the 2.x branch, but removes support for old PHP versions and requires Symfony 4.
    Open source →
  39. 2.12.2 03 Jan 2022

    Nothing published for this version

  40. 2.12.1 11 Oct 2020

    Nothing published for this version

  41. 2.12.0 08 Mar 2019
    Release notes
    • Allow annotated args and options to specify their default values in their descriptions. (#186)
    Open source →
  42. 2.11.2 02 Feb 2019
    Release notes
    • Fix handling of old caches from 2.11.1 that introduced upgrade errors.
    Open source →
  43. 2.11.1 31 Jan 2019
    Release notes
    • Cache injected classes (#182)
    Open source →
  44. 2.11.0 29 Dec 2018
    Release notes
    • Make injection of InputInterface / OutputInterface general-purpose (#179)
    Open source →
  45. 2.10.2 21 Dec 2018
    Release notes
    • Fix commands that have a @param annotation for their InputInterface/OutputInterface params (#176)
    Open source →
  46. 2.10.1 14 Dec 2018
    Release notes
    • Add stdin handler convenience class
    • Add setter to AnnotationData to suppliment existing array acces
    • Update to Composer Test Scenarios 3
    Open source →
  47. 2.10.0 15 Nov 2018
    Release notes
    • Add a new data type, CommandResult (#167)
    Open source →
  48. 2.9.1 19 Sep 2018

    Nothing published for this version

  49. 2.9.0 19 Sep 2018
    Release notes
    • Improve commandfile discovery for extensions installed via Composer. (#156)
    Open source →
  50. 2.8.5 18 Aug 2018
    Release notes
    • Add dependencies.yml for dependencies.io
    • Fix warning in AnnotatedCommandFactory when getCommandInfoListFromCache called with null.
    Open source →
  51. 2.8.4 25 May 2018
    Release notes
    • Use g1a/composer-test-scenarios for better PHP version matrix testing.
    Open source →
  52. 2.8.3 23 Feb 2018
    Release notes
    • BUGFIX: Do not shift off the command name unless it is there. (#139)
    • Use test scenarios to test multiple versions of Symfony. (#136, #137)
    Open source →
  53. 2.8.2 29 Nov 2017
    Release notes
    • Allow Symfony 4 components.
    Open source →
  54. 2.8.1 17 Oct 2017
    Release notes
    • Add hook methods to allow Symfony command events to be added directly to the hook manager, givig better control of hook order. (#131)
    Open source →
  55. 2.8.0 13 Oct 2017
    Release notes
    • Remove phpdocumentor/reflection-docblock in favor of using a bespoke parser (#130)
    Open source →
  56. 2.7.2 05 Oct 2017

    Nothing published for this version

  57. 2.7.1 03 Oct 2017

    Nothing published for this version

  58. 2.7.0 18 Sep 2017
    Release notes
    • Add support for options with a default value of 'true' (#119)
    • BUGFIX: Improve handling of options with optional values, which previously was not working correctly. (#118)
    Open source →
  59. 2.6.1 18 Sep 2017
    Release notes
    • Reverts to contents of the 2.4.13 release.
    Open source →
  60. 2.6.0 18 Sep 2017

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive