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 2026Releases
latest 31-
2.4.023 Jun 2026Release notes
Open source →What's Changed
- Allow Symfony 8.x by @BenoitLeveque in #190
New Contributors
- @BenoitLeveque made their first contribution in #190
Full Changelog: 2.3.2...2.4.0
-
2.3.213 May 2026 -
2.3.116 Mar 2026Release notes
Open source → -
2.3.013 Mar 2026 -
2.2.304 Mar 2026 -
2.2.209 Dec 2025Release notes
Open source →What's Changed
- Fixed symfony constraints visitor by @nexxome in #182
- Require nikic/php-parser 5 only by @nexxome in #183
New Contributors
Full Changelog: 2.2.1...2.2.2
-
2.2.102 Oct 2024Release notes
Open source →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
-
2.2.011 Jun 2024Nothing published for this version
-
2.1.128 Mar 2023Release notes
Open source →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
-
2.1.014 Feb 2022Release notes
Open source →See Changelog.md for more detailed changes.
What's Changed
- Allow Symfony 6 by @bocharsky-bw in #165
- New extractor for constraints by @lukepass in #160
- Concatenated labels by @Stadly in #127
- Add support to placeholders as array by @cristoforocervino in #158
- Humanize the implicit label of symfony form types by @rmbl in #154
New Contributors
- @lukepass made their first contribution in #160
- @Stadly made their first contribution in #127
- @cristoforocervino made their first contribution in #158
- @rmbl made their first contribution in #154
Full Changelog: 2.0.4...2.1.0
Release notes
Open source →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
-
2.0.426 Jan 2022Release notes
Open source →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
-
2.0.325 Mar 2021 -
2.0.210 Jun 2020Release notes
Open source →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
-
2.0.123 Jan 2020Release notes
Open source →Fixed
- Avoid exception when calling
transwith a variable.
Added
- Added extractor for form field titles
- Avoid exception when calling
-
2.0.026 Dec 2019Release notes
Open source →- Add support of Symfony ^5.0
- Add strict type hinting
- Added
PHPFileExtractor::supportsExtension(): bool - Removed
PHPFileExtractor::getType() - Remove support of Twig 1.x (
Twig2VisitorandTwigVisitorFactory) - Remove support of PHP < 7.2
- Remove support of Symfony < 3.4
-
1.7.109 Jul 2018 -
1.7.008 Jul 2018Release notes
Open source →Added
- Support for
@translateannotation. - Better handle
@ignoreannotation on FormTypeChoices
- Support for
-
1.6.003 Jul 2018Release notes
Open source →Added
- Support for Symfony form help.
Fixed
- Fixed issue where using the
@ignoreannotation ignored the wrong property. - Do not run the Twig worker if we are not extracting.
-
1.5.218 Apr 2018Release notes
Open source →Fixed
- Fixed Fatal Error in FormTypeImplicit when using method call from variable
-
1.5.113 Apr 2018 -
1.5.012 Apr 2018Release notes
Open source →Added
- Support for
nikic/php-parser:^4 - Support for
array_*callback inSourceLocation::createHere - Support for global 'translation_domain' in forms
- Support for
@Ignoreannotation in $builder->add to prevent implicit label
Changes
- Make sure we do not extract implicit labels form HiddenType
Fixed
- Added missing
sprintfinValidationAnnotaion - Do not generate an error on "placeholder=>false"
- Support for
-
1.4.006 Jan 2018Release notes
Open source →Added
- Support for
translation_domainandchoice_translation_domain
Fixed
- Respect
"label" => false - Form type extractors will only operate on form type classes.
- Support for
-
1.3.128 Dec 2017 -
1.3.028 Dec 2017Release notes
Open source →Added
- Support for passing choice as variable
- Support for Symfony 4
- Support for
descannotation and twig filter - Support for .phtml
-
1.2.019 Aug 2017Release notes
Open source →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.
-
1.1.212 Aug 2017Release notes
Open source →Fixed
- Do not stop visiting a file when not class is not *Type.
Added
- More test to prove correctness.
-
1.1.111 Mar 2017Release notes
Open source →Fixed
- Make sure we test with the lowest version on Travis
- Fixed minor bugs for Twig 1.x.
-
1.1.011 Mar 2017Release notes
Open source →Added
- Support for Twig 2.0.
- Support for reporting errors and silence errors with
@Ignore.
Deprecated
Twig\TranslationBlockandTwig\TranslationFilter. UseTwig\Twig1Visitorinstead.
-
1.0.004 Jan 2017Nothing published for this version
-
0.1.121 Dec 2016 -
0.1.005 Dec 2016