awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
theseer avatar

theseer/tokenizer

0
View on GitHub↗
5,194 stars·23 forks·PHP·8 views

Tokenizer

This library is a PHP source code tokenizer and static analysis tool that converts raw PHP code into discrete tokens and structured XML representations. It functions as a serializer that transforms token streams into a machine-readable format for programmatic analysis and source tree manipulation.

The project uses stream-based XML serialization and fragment-based buffer writing to maintain low memory overhead when processing large files. It allows for custom XML namespace configuration to ensure schema compatibility and avoid naming collisions during the transformation process.

The toolkit covers lexical analysis and the conversion of source code into structured XML to support static code analysis workflows. It processes token streams in a single pass to organize flat source lists into a hierarchical XML structure.

Features

  • PHP Code Analysis - Converts PHP source code into structured XML to enable programmatic analysis and manipulation of the code tree.
  • XML Serialization - Serializes a list of tokens into an XML representation that preserves the original source structure and content.
  • Static Code Analysis - Turns PHP source files into a machine-readable XML format to simplify the identification of patterns within a codebase.
  • Lexical Tokenizers - Utilizes the internal PHP tokenizer to break raw source code into a stream of discrete lexical tokens.
  • Source-to-XML Transformation - Transforms tokenized PHP source code into a structured XML representation for automated analysis and downstream processing.
  • Token Serialization - Transforms raw PHP tokens into a standardized XML format to preserve code structure for external processing tools.
  • PHP Parsers - Parses raw PHP source code into a sequence of tokens for programmatic analysis and transformation.
  • PHP To XML Serializers - Transforms PHP token streams into structured XML representations for easier source tree manipulation.
  • Source Code Tokenizers - Converts PHP source code into discrete tokens to enable programmatic analysis and processing.
  • Fragment Serialization - Appends serialized XML segments to a writer to improve performance and memory efficiency when processing large codebases.
  • Stream-Based Serialization - Writes XML fragments incrementally to a writer to maintain low memory overhead during large file processing.
  • Source-to-Source Analysis - Converts PHP source into XML to simplify the analysis and manipulation of the original source tree.
  • PHP AST Parsers - Prepares tokenized PHP code for further transformation by organizing it into an XML representation.
  • Single-Pass Tokenizers - Uses a single-pass processing flow to convert flat token lists into a hierarchical XML structure.

Star history

Star history chart for theseer/tokenizerStar history chart for theseer/tokenizer

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Tokenizer

Similar open-source projects, ranked by how many features they share with Tokenizer.
  • nikic/php-parsernikic avatar

    nikic/PHP-Parser

    17,437View on GitHub↗

    PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic manipulation. It functions as a parser, a code generator, and a static analysis framework. The project enables the programmatic construction of abstract syntax tree nodes through a fluent interface and provides the ability to transform these trees back into formatted source code. It includes a serializer that exports abstract syntax trees to JSON format and reconstructs them from strings. The toolset covers several capability areas, including namespace resolution, constant exp

    PHP
    View on GitHub↗17,437
  • martinblech/xmltodictmartinblech avatar

    martinblech/xmltodict

    5,741View on GitHub↗

    xmltodict is a Python library that provides bidirectional serialization between XML documents and dictionaries. It functions as a parser that converts marked-up input into key-value pairs and a serialization utility that transforms dictionaries back into structured XML documents. The project includes an incremental stream processor that uses depth-based callbacks to handle large XML files while maintaining constant memory usage. It features a namespace manager for mapping prefixes and declarations, as well as a security sanitizer that blocks external entity expansion and validates element nam

    Python
    View on GitHub↗5,741
  • leonidas-from-xiv/node-xml2jsLeonidas-from-XIV avatar

    Leonidas-from-XIV/node-xml2js

    4,966View on GitHub↗

    This project is a Node.js library for bidirectional conversion between XML strings and JavaScript objects. It functions as an XML parser that transforms XML content into structured data and an XML serializer that generates formatted strings from JavaScript data objects. The toolkit includes a data transformer that applies custom processing functions to tags and attributes during the conversion process. It manages XML namespaces and supports the definition of custom root elements to maintain document structure during generation. The system handles XML data parsing, string generation, and name

    CoffeeScript
    View on GitHub↗4,966
  • felixfbecker/php-language-serverfelixfbecker avatar

    felixfbecker/php-language-server

    1,193View on GitHub↗

    This project is a backend service that implements the Language Server Protocol to provide IDE-integrated intelligence for PHP development. It functions as a static analysis tool that parses source code to enable advanced editor features, including autocompletion, symbol navigation, and definition resolution. The server distinguishes itself through its ability to operate within isolated containers and remote development environments. By utilizing a virtual file system abstraction and flexible communication protocols, it maintains project-wide symbol indexing and code analysis even when files a

    PHPautocompletecode-analysiside
    View on GitHub↗1,193
See all 30 alternatives to Tokenizer→

Frequently asked questions

What does theseer/tokenizer do?

This library is a PHP source code tokenizer and static analysis tool that converts raw PHP code into discrete tokens and structured XML representations. It functions as a serializer that transforms token streams into a machine-readable format for programmatic analysis and source tree manipulation.

What are the main features of theseer/tokenizer?

The main features of theseer/tokenizer are: PHP Code Analysis, XML Serialization, Static Code Analysis, Lexical Tokenizers, Source-to-XML Transformation, Token Serialization, PHP Parsers, PHP To XML Serializers.

What are some open-source alternatives to theseer/tokenizer?

Open-source alternatives to theseer/tokenizer include: nikic/php-parser — PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic… martinblech/xmltodict — xmltodict is a Python library that provides bidirectional serialization between XML documents and dictionaries. It… leonidas-from-xiv/node-xml2js — This project is a Node.js library for bidirectional conversion between XML strings and JavaScript objects. It… felixfbecker/php-language-server — This project is a backend service that implements the Language Server Protocol to provide IDE-integrated intelligence… phpdocumentor/reflectioncommon — ReflectionCommon is a PHP reflection interface library and code analysis abstraction. It serves as a foundation for… friendsofphp/php-cs-fixer — PHP-CS-Fixer is a static analysis tool and code style linter designed to validate PHP code against predefined…