hippophp / tokenizer
This package is abandoned and no longer maintained.
No replacement package was suggested.
Wrapper around token_get_all
dev-master / 1.0.x-dev
2017-08-12 11:37 UTC
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)