Download the PHP package componenta/tokenizer without Composer
On this page you can find all versions of the php package componenta/tokenizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download componenta/tokenizer
More information about componenta/tokenizer
Files in componenta/tokenizer
Download componenta/tokenizer
More information about componenta/tokenizer
Files in componenta/tokenizer
Vendor componenta
Package tokenizer
Short Description Token-based PHP source inspection helpers for Componenta
License MIT
Package tokenizer
Short Description Token-based PHP source inspection helpers for Componenta
License MIT
Please rate this library. Is it a good library?
Informations about the package tokenizer
Componenta Tokenizer
PHP declaration tokenizer used by class discovery.
Installation
Requirements
- PHP 8.4+
Related Packages
| Package | Why it matters here |
|---|---|
componenta/class-finder |
Walks PHP files and uses this tokenizer for each source file. |
componenta/app and *-app packages |
Use class discovery during application cache compilation. |
| PHP Reflection | Used only when ClassInfo::$reflector is requested and the declaration is autoloadable. |
What It Provides
TokenizerInterface: public contract for parsing PHP source.Tokenizer: token-based parser for named declarations.ClassInfo: immutable declaration metadata with lazy reflection.DeclarationType: enum for class, interface, trait, and enum declarations.
Anonymous classes are ignored. The tokenizer assumes syntactically valid PHP input.
Parsing Source
Each item is a ClassInfo:
Search Modes
Use bitmasks to restrict declaration types:
Available flags:
SEARCH_CLASSESSEARCH_INTERFACESSEARCH_TRAITSSEARCH_ENUMSSEARCH_ALL
Reflection
ClassInfo::$reflector is lazy and requires the declaration to already be loaded.
All versions of tokenizer with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
The package componenta/tokenizer contains the following files
Loading the files please wait ...