Download the PHP package bermudaphp/tokenizer without Composer
On this page you can find all versions of the php package bermudaphp/tokenizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tokenizer
bermudaphp/tokenizer
🇺🇸 English | 🇷🇺 Русский
PHP tokenizer for finding class, interface, trait, and enum declarations.
Features
- High Performance - optimized PHP token parsing
- Full PHP 8+ Support - works with classes, interfaces, traits, and enums
- Modifier Support - handles abstract, final, readonly classes
- Anonymous Class Filtering - focuses on named declarations only
- PHP Attributes Support - properly handles
#[Attribute]
syntax - Configurable Search - bitwise flags for selective searching
Installation
Quick Start
Search Modes
Use bitwise flags to configure which declaration types to search for:
Available Flags
Constant | Value | Description |
---|---|---|
SEARCH_CLASSES |
1 | Search for classes |
SEARCH_INTERFACES |
2 | Search for interfaces |
SEARCH_TRAITS |
4 | Search for traits |
SEARCH_ENUMS |
8 | Search for enums |
SEARCH_ALL |
15 | Search for everything |
ClassInfo API
The ClassInfo
class provides detailed information about found declarations:
Properties
Virtual Properties
Methods
Usage Examples
Finding Concrete Classes
Working with Reflection
Grouping by Namespace
Requirements
- PHP 8.4 or higher
tokenizer
extension (usually included in standard PHP builds)
License
MIT License. See LICENSE file for details.
All versions of tokenizer with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.4
ext-tokenizer Version *
ext-tokenizer Version *
The package bermudaphp/tokenizer contains the following files
Loading the files please wait ....