PackageTrack
Sign in Get early access

php-translation/extractor

Extract translations form the source code

2.4.0 4.7M downloads/mo #4430 most downloaded on Packagist php-translation/extractor

What this package is like to depend on

Last release 2 months ago

23 Jun 2026

Release timing varies

gaps range from 8 days to 1.2 years

Nearly every release is documented

notes for 29 of 31 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

31 releases · first in 2016

6 releases in the last 12 months

see the full history below

Release timeline

31 releases · Dec 2016 to Jun 2026
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 31
  1. 2.4.0 23 Jun 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.3.2...2.4.0

    Open source →
  2. 2.3.2 13 May 2026
    Release notes

    What's Changed

    • Use host PHP version instead of hardcoded version to parse newer syntax by @GCth in #189

    New Contributors

    • @GCth made their first contribution in #189

    Full Changelog: 2.3.1...2.3.2

    Open source →
  3. 2.3.1 16 Mar 2026
    Release notes

    What's Changed

    Full Changelog: 2.3.0...2.3.1

    Open source →
  4. 2.3.0 13 Mar 2026
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.2.3...2.3.0

    Open source →
  5. 2.2.3 04 Mar 2026
    Release notes

    What's Changed

    • Fix #184: Check FormTypeInterface instead of class name suffix by @gchehami in #185

    New Contributors

    Full Changelog: 2.2.2...2.2.3

    Open source →
  6. 2.2.2 09 Dec 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.2.1...2.2.2

    Open source →
  7. 2.2.1 02 Oct 2024
    Release notes

    What's Changed

    • feat: Twig\Node\Expression\FilterExpression use attribute instate of … by @gimler in #177
    • cs: fix native_function_invocation & trailing_comma_in_multiline by @gimler in #178

    Full Changelog: 2.2.0...2.2.1

    Open source →
  8. 2.2.0 11 Jun 2024

    Nothing published for this version

  9. 2.1.1 28 Mar 2023
    Release notes

    What's Changed

    • Simplify badges list and other minor README tweaks by @bocharsky-bw in #167
    • Allows doctrine/annotations ^2.0 by @axi in #170

    Full Changelog: 2.1.0...2.1.1

    Open source →
  10. 2.1.0 14 Feb 2022
    Release notes

    See Changelog.md for more detailed changes.

    What's Changed

    New Contributors

    Full Changelog: 2.0.4...2.1.0

    Open source →
    Release notes

    Added

    • Allow Symfony 6 by @bocharsky-bw in https://github.com/php-translation/extractor/pull/165
    • New extractor for constraints by @lukepass in https://github.com/php-translation/extractor/pull/160
    • Concatenated labels by @Stadly in https://github.com/php-translation/extractor/pull/127
    • Add support to placeholders as array by @cristoforocervino in https://github.com/php-translation/extractor/pull/158
    • Humanize the implicit label of symfony form types https://github.com/php-translation/extractor/pull/154
    Open source →
  11. 2.0.4 26 Jan 2022
    Release notes

    Added

    • Add GitHub Actions CI config by @bocharsky-bw in https://github.com/php-translation/extractor/pull/164
    • Add return type to fix deprecation by @gimler in https://github.com/php-translation/extractor/pull/161

    Removed

    • Remove phpcs-fixer --diff-fomat option by @gimler in https://github.com/php-translation/extractor/pull/163
    • Delete Travis config - repo migrated to GitHub Actions by @bocharsky-bw in https://github.com/php-translation/extractor/pull/162
    Open source →
  12. 2.0.3 25 Mar 2021
    Release notes

    Added

    • Add support for PHP 8 #157
    Open source →
  13. 2.0.2 10 Jun 2020
    Release notes

    Fixed

    • Update image used in github actions to fix CS errors #153
    • Fixed error when using variable in transChoice() #151

    Added

    • Knp menu extractors #152
    Open source →
  14. 2.0.1 23 Jan 2020
    Release notes

    Fixed

    • Avoid exception when calling trans with a variable.

    Added

    • Added extractor for form field titles
    Open source →
  15. 2.0.0 26 Dec 2019
    Release notes
    • Add support of Symfony ^5.0
    • Add strict type hinting
    • Added PHPFileExtractor::supportsExtension(): bool
    • Removed PHPFileExtractor::getType()
    • Remove support of Twig 1.x (Twig2Visitor and TwigVisitorFactory)
    • Remove support of PHP < 7.2
    • Remove support of Symfony < 3.4
    Open source →
  16. 1.7.1 09 Jul 2018
    Release notes

    Fixed

    • Error when getting caller name with the FlashMessage extractor.
    Open source →
  17. 1.7.0 08 Jul 2018
    Release notes

    Added

    • Support for @translate annotation.
    • Better handle @ignore annotation on FormTypeChoices
    Open source →
  18. 1.6.0 03 Jul 2018
    Release notes

    Added

    • Support for Symfony form help.

    Fixed

    • Fixed issue where using the @ignore annotation ignored the wrong property.
    • Do not run the Twig worker if we are not extracting.
    Open source →
  19. 1.5.2 18 Apr 2018
    Release notes

    Fixed

    • Fixed Fatal Error in FormTypeImplicit when using method call from variable
    Open source →
  20. 1.5.1 13 Apr 2018
    Release notes

    Fixed

    • Fixed bug where form option key attr is not an array.
    Open source →
  21. 1.5.0 12 Apr 2018
    Release notes

    Added

    • Support for nikic/php-parser:^4
    • Support for array_* callback in SourceLocation::createHere
    • Support for global 'translation_domain' in forms
    • Support for @Ignore annotation in $builder->add to prevent implicit label

    Changes

    • Make sure we do not extract implicit labels form HiddenType

    Fixed

    • Added missing sprintf in ValidationAnnotaion
    • Do not generate an error on "placeholder=>false"
    Open source →
  22. 1.4.0 06 Jan 2018
    Release notes

    Added

    • Support for translation_domain and choice_translation_domain

    Fixed

    • Respect "label" => false
    • Form type extractors will only operate on form type classes.
    Open source →
  23. 1.3.1 28 Dec 2017
    Release notes

    Added

    • Symfony 2.7 support
    Open source →
  24. 1.3.0 28 Dec 2017
    Release notes

    Added

    • Support for passing choice as variable
    • Support for Symfony 4
    • Support for desc annotation and twig filter
    • Support for .phtml
    Open source →
  25. 1.2.0 19 Aug 2017
    Release notes

    Added

    • Support for PHPUnit6
    • Extract translation from form's "empty_value"
    • Extract translation from Validation messages

    Changed

    • Added TwigVisitorFactory to create a TwigVisitor. TwigVisitor::create has been deprecated.
    Open source →
  26. 1.1.2 12 Aug 2017
    Release notes

    Fixed

    • Do not stop visiting a file when not class is not *Type.

    Added

    • More test to prove correctness.
    Open source →
  27. 1.1.1 11 Mar 2017
    Release notes

    Fixed

    • Make sure we test with the lowest version on Travis
    • Fixed minor bugs for Twig 1.x.
    Open source →
  28. 1.1.0 11 Mar 2017
    Release notes

    Added

    • Support for Twig 2.0.
    • Support for reporting errors and silence errors with @Ignore.

    Deprecated

    • Twig\TranslationBlock and Twig\TranslationFilter. Use Twig\Twig1Visitor instead.
    Open source →
  29. 1.0.0 04 Jan 2017

    Nothing published for this version

  30. 0.1.1 21 Dec 2016
    Release notes

    Added

    • Blade file type extractor
    • Placeholder extractor
    Open source →
  31. 0.1.0 05 Dec 2016
    Release notes

    Init release

    Open source →

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