PackageTrack
Sign in Get early access

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 2025
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 13
  1. 2.0.1 08 Dec 2025
    Release notes
    • Removed the custom token T_AMPERSAND as 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

    Open source →
    Release notes

    Fixed

    • Removed the custom token T_AMPERSAND as PHP 8.1+ provides tokens for it already and our 2.0.0 release overwrote it. See #44 for details.
    Open source →
  2. 2.0.0 06 Dec 2025
    Release notes

    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

    Open source →
    Release notes

    This release bumps the minimum version required to PHP 8.1.

    Added

    • New API XMLSerializer::appendToWriter to allow easier integration and better performance when writing fragments (Thanks @staabm)

    Changed

    • Internal change: Now uses PHPToken::tokenize in favor of token_get_all (requires PHP 8+) (Thanks @staabm)
    Open source →
  3. 1.3.1 17 Nov 2025
    Release notes
    • Fix #37: v1.3.0 introduced a breaking change on the token collection (ArrayAccess interface removed)
    Open source →
    Release notes

    Fixed

    • #37: v1.3.0 introduced a breaking change on the token collection (ArrayAccess interface removed)
    Open source →
  4. 1.3.0 13 Nov 2025
    Release notes
    • 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
    Open source →
    Release notes

    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
    Open source →
  5. 1.2.3 03 Mar 2024
    Release notes

    Changed

    • Do not use implict nullable type (thanks @sebastianbergmann), this should make things work on PHP 8.4
    Open source →
    Release notes

    Changed

    • Do not use implicitly nullable parameters
    Open source →
  6. 1.2.2 20 Nov 2023
    Release notes

    Fixed

    • #18: Tokenizer fails on protobuf metadata files
    Open source →
    Release notes

    Fixed

    • #18: Tokenizer fails on protobuf metadata files
    Open source →
  7. 1.2.1 28 Jul 2021
    Release notes

    Fixed

    • #13: Fatal error when tokenizing files that contain only a single empty line
    Open source →
  8. 1.2.0 12 Jul 2020
    Release notes

    This release is now PHP 8.0 compliant.

    Fixed

    • Whitespace handling in general (only noticeable in the intermediate TokenCollection) is now consistent

    Changed

    • Updated Tokenizer to deal with changed whitespace handling in PHP 8.0 The XMLSerializer was unaffected.
    Open source →
  9. 1.1.3 13 Jun 2019
    Release notes

    Changed

    • Ensure XMLSerializer can deal with empty token collections

    Fixed

    • #2: Fatal error in infection / phpunit
    Open source →
  10. 1.1.2 04 Apr 2019
    Release notes

    Revert PHPUnit 8 update to stay PHP 7.0 compliant.

    This release does not include any functionality change otherwise.

    Open source →
    Release notes

    Changed

    • Reverted PHPUnit 8 test update to stay PHP 7.0 compliant
    Open source →
  11. 1.1.1 03 Apr 2019
    Release notes

    Fixed

    • #1: Empty file causes invalid array read

    Changed

    • Tests should now be PHPUnit 8 compliant
    Open source →
  12. 1.1.0 07 Apr 2017
    Release notes

    Added

    • Allow use of custom namespace for XML serialization
    Open source →
  13. 1.0.0 05 Apr 2017
    Release notes

    Initial 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