theseer/tokenizer
A small library for converting tokenized PHP source code into XML and potentially other formats
2.0.1
822M downloads/mo
#58 most downloaded on composer
theseer/tokenizer
What this package is like to depend on
Last release 8 months ago
08 Dec 2025
Release timing varies
gaps range from 3 weeks to 2.3 years
Nearly every release is documented
notes for 13 of 13 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
13 releases · first in 2017
4 releases in the last 12 months
see the full history below
Release timeline
13 releases · Apr 2017 to Dec 2025Releases
latest 13-
2.0.108 Dec 2025Release notes
Open source →- Removed the custom token
T_AMPERSANDas PHP 8.1+ provides tokens for it already and our 2.0.0 release overwrote it. See #44 for details.
Full Changelog: 2.0.0...2.0.1
Release notes
Open source →Fixed
- Removed the custom token
T_AMPERSANDas PHP 8.1+ provides tokens for it already and our 2.0.0 release overwrote it. See #44 for details.
- Removed the custom token
-
2.0.006 Dec 2025Release notes
Open source →What's Changed
- Utilize
PhpToken::tokenize()- requires PHP8+ by @staabm in #35 - Add XMLSerializer->appendToWriter() by @staabm in #38
Full Changelog: 1.3.1...2.0.0
Release notes
Open source →This release bumps the minimum version required to PHP 8.1.
Added
- New API
XMLSerializer::appendToWriterto allow easier integration and better performance when writing fragments (Thanks @staabm)
Changed
- Internal change: Now uses
PHPToken::tokenizein favor oftoken_get_all(requires PHP 8+) (Thanks @staabm)
- Utilize
-
1.3.117 Nov 2025Release notes
Open source →- Fix #37: v1.3.0 introduced a breaking change on the token collection (ArrayAccess interface removed)
Release notes
Open source →Fixed
- #37: v1.3.0 introduced a breaking change on the token collection (ArrayAccess interface removed)
-
1.3.013 Nov 2025Release notes
Open source →Changed
- Require at least PHP 7.3 for building, code should still be PHP 7.2 compliant
- Merge various performance improvements provided by @staabm
- Merge some code cleanups provided by @staabm
-
1.2.303 Mar 2024Release notes
Open source →Changed
- Do not use implict nullable type (thanks @sebastianbergmann), this should make things work on PHP 8.4
-
1.2.220 Nov 2023 -
1.2.128 Jul 2021Release notes
Open source →Fixed
- #13: Fatal error when tokenizing files that contain only a single empty line
-
1.2.012 Jul 2020Release notes
Open source →This release is now PHP 8.0 compliant.
Fixed
- Whitespace handling in general (only noticeable in the intermediate
TokenCollection) is now consistent
Changed
- Updated
Tokenizerto deal with changed whitespace handling in PHP 8.0 The XMLSerializer was unaffected.
- Whitespace handling in general (only noticeable in the intermediate
-
1.1.313 Jun 2019Release notes
Open source →Changed
- Ensure XMLSerializer can deal with empty token collections
Fixed
- #2: Fatal error in infection / phpunit
-
1.1.204 Apr 2019Release notes
Open source →Revert PHPUnit 8 update to stay PHP 7.0 compliant.
This release does not include any functionality change otherwise.
-
1.1.103 Apr 2019Release notes
Open source → -
1.1.007 Apr 2017 -
1.0.005 Apr 2017