thruster / tokenizer
Thruster Tokenizer Component
1.0.0
2017-01-31 18:58 UTC
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: ~5.1
This package is auto-updated.
Last update: 2024-10-14 03:12:44 UTC
README
The Thruster Tokenizer Component.
Install
Via Composer
$ composer require thruster/tokenizer
Usage
use Thruster\Component\Tokenizer\Parser; $parser = new Parser(); $parser->parse('<?php ... ?>'); // => Token[] $parser->parseBlock('function fooBar(){...};'); // => Token[] $parser->parseFile('/some/file.php'); // => Token[]
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.