hippophp / tokenizer
Wrapper around token_get_all
Installs: 1 101
Dependents: 1
Suggesters: 0
Security: 0
Stars: 8
Watchers: 4
Forks: 0
Open Issues: 2
Requires
- php: >=5.5.9
- ext-tokenizer: *
Requires (Dev)
- phpunit/phpunit: ^4.8|^5.0
This package is auto-updated.
Last update: 2024-12-19 07:23:48 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_all
is wrapped in this.TokenListIterator
- ImplementsSeekableIterator
andCountable
with extra methods to allow easy moving through tokens.Tokenizer
- Callstoken_get_all
on the source, turns each result into aToken
representation and returns aTokenListIterator
object.
Installation
You can install Tokenizer by adding hippophp/tokenizer
to your composer.json
file.
License
HippoPHP Tokenizer is licensed under The MIT License (MIT)