hippophp / tokenizer
Wrapper around token_get_all
Installs: 1 122
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 0
Open Issues: 2
pkg:composer/hippophp/tokenizer
Requires
- php: >=5.5.9
- ext-tokenizer: *
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.0
This package is auto-updated.
Last update: 2025-04-19 08:04:57 UTC
README
What is Tokenizer?
Tokenizer is a wrapper around the token_get_all function. It's built up of three classes:
Token- Each token returned fromtoken_get_allis wrapped in this.TokenListIterator- ImplementsSeekableIteratorandCountablewith extra methods to allow easy moving through tokens.Tokenizer- Callstoken_get_allon the source, turns each result into aTokenrepresentation and returns aTokenListIteratorobject.
Installation
You can install Tokenizer by adding hippophp/tokenizer to your composer.json file.
License
HippoPHP Tokenizer is licensed under The MIT License (MIT)