awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
sebastianbergmann avatar

sebastianbergmann/php-token-stream

0
View on GitHub↗
6,386 星标·58 分支·PHP·2 次浏览

Php Token Stream

php-token-stream is a lexical analysis tool and tokenizer wrapper for PHP. It functions as a source code streamer that reads tokens one by one, preventing the need to load entire source files into memory.

The project provides memory-efficient parsing by wrapping the native PHP tokenizer extension. This allows for the sequential processing of source code tokens to analyze structural components and syntax.

The tool is designed for static code analysis and the development of compiler tooling. It supports linear token processing and sequential traversal to examine language constructs and project structures.

Features

  • Lexical Analyzers - Functions as a lexical analyzer that breaks PHP source code into a stream of tokens for analysis.
  • Tokenizer Wrappers - Wraps the native PHP tokenizer extension to provide a memory-efficient streaming interface.
  • Memory-Efficient Parsing - Minimizes memory overhead when analyzing large PHP files by streaming tokens instead of loading the full source.
  • Lexical Token Streams - Represents PHP source code as a sequence of discrete tokens for syntactic and structural analysis.
  • PHP Code Analysis - Analyzes the structure and syntax of PHP source code token by token without loading entire files.
  • Source Code Streamers - Reads PHP tokens one by one as a stream to prevent loading entire source files into memory.
  • Source Code Token Streaming - Implements an iterator-based approach to stream PHP tokens without loading entire source files into memory.
  • Compiler Tooling - Provides the sequential token parsing necessary for building PHP compiler and transformation tools.
  • Lazy Sequences - Provides a lazy-loading sequence that retrieves tokens only when requested to reduce memory overhead.
  • Token Stream Navigators - Maintains a stateful pointer within the token sequence to support sequential traversal and look-ahead operations.
  • Linear Tokenizers - Processes source code as a one-dimensional stream of tokens to simplify structural analysis.
  • Static Code Analysis Tools - Enables the examination of PHP source code for bugs and structural patterns without executing it.

Star 历史

sebastianbergmann/php-token-stream 的 Star 历史图表sebastianbergmann/php-token-stream 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Php Token Stream 的开源替代方案

相似的开源项目,按与 Php Token Stream 的功能重合度排序。
  • phpdocumentor/reflectioncommonphpDocumentor 的头像

    phpDocumentor/ReflectionCommon

    9,058在 GitHub 上查看↗

    ReflectionCommon is a PHP reflection interface library and code analysis abstraction. It serves as a foundation for static analysis by providing a shared specification for representing classes, methods, and properties during programmatic code inspection. The project standardizes the reflection API to decouple analysis tools from specific PHP reflection implementations. This ensures that different analysis implementations can work interchangeably through a consistent layer of interfaces. The library covers the domain of PHP code analysis and static analysis tooling, establishing a common way

    PHPhacktoberfest
    在 GitHub 上查看↗9,058
  • nunomaduro/phpinsightsnunomaduro 的头像

    nunomaduro/phpinsights

    5,607在 GitHub 上查看↗

    PhpInsights is a static analysis tool and code quality analyzer for PHP. It evaluates source code to identify bugs, style violations, and technical debt without executing the application. The tool functions as a complexity metric utility, calculating architectural and cyclomatic complexity to locate overly complicated logic. It measures overall software health and maintainability by comparing code against industry standards. The system manages technical debt through rule-based validation and metric-driven scoring. It uses a static analysis engine to parse source code, delivering the results

    PHP
    在 GitHub 上查看↗5,607
  • doctrine/lexerdoctrine 的头像

    doctrine/lexer

    11,156在 GitHub 上查看↗

    This project is a regular expression lexer library and lexical analysis engine used to break input strings into typed token streams. It serves as a foundational component for constructing compilers or interpreters by identifying and categorizing substrings into discrete tokens. The library provides a token stream navigator featuring a cursor-based interface. This allows for sequential traversal of tokenized input and non-destructive lookahead, enabling the inspection of future tokens without advancing the internal position pointer. It includes specific support for recursive descent parsing t

    PHP
    在 GitHub 上查看↗11,156
  • antlr/antlr4antlr 的头像

    antlr/antlr4

    18,928在 GitHub 上查看↗

    ANTLR is a grammar-based code generator and multi-language parser generator used to design and implement custom languages. It functions as a toolkit for transforming formal language definitions into executable source code for processing structured text or binary files, while providing a framework for automatically constructing and traversing hierarchical parse trees. The project is distinguished by its ability to generate lexers and parsers in various target programming languages from a single shared grammar definition. It supports grammars containing direct left recursion and utilizes adapti

    Java
    在 GitHub 上查看↗18,928
查看 Php Token Stream 的所有 30 个替代方案→

常见问题解答

sebastianbergmann/php-token-stream 是做什么的?

php-token-stream is a lexical analysis tool and tokenizer wrapper for PHP. It functions as a source code streamer that reads tokens one by one, preventing the need to load entire source files into memory.

sebastianbergmann/php-token-stream 的主要功能有哪些?

sebastianbergmann/php-token-stream 的主要功能包括:Lexical Analyzers, Tokenizer Wrappers, Memory-Efficient Parsing, Lexical Token Streams, PHP Code Analysis, Source Code Streamers, Source Code Token Streaming, Compiler Tooling。

sebastianbergmann/php-token-stream 有哪些开源替代品?

sebastianbergmann/php-token-stream 的开源替代品包括: phpdocumentor/reflectioncommon — ReflectionCommon is a PHP reflection interface library and code analysis abstraction. It serves as a foundation for… nunomaduro/phpinsights — PhpInsights is a static analysis tool and code quality analyzer for PHP. It evaluates source code to identify bugs,… doctrine/lexer — This project is a regular expression lexer library and lexical analysis engine used to break input strings into typed… antlr/antlr4 — ANTLR is a grammar-based code generator and multi-language parser generator used to design and implement custom… felixfbecker/php-language-server — This project is a backend service that implements the Language Server Protocol to provide IDE-integrated intelligence… alecthomas/participle — Participle is a Go parser generator and toolkit for building language frontends. It provides a declarative grammar…