diff options
| author | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-09 02:49:56 +0000 |
|---|---|---|
| committer | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-09 03:08:30 +0000 |
| commit | e41d6361221a30ca9d996cde7591111e626b7e1c (patch) | |
| tree | 4572f61f37bbc76192ad60e0940c281483bc03af /vendor/theseer/tokenizer/README.md | |
| parent | ab0aabf8548c206f3f624de5451a9b6abbde90be (diff) | |
Remove dev dependencies and update the rest.
Diffstat (limited to 'vendor/theseer/tokenizer/README.md')
| -rw-r--r-- | vendor/theseer/tokenizer/README.md | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/vendor/theseer/tokenizer/README.md b/vendor/theseer/tokenizer/README.md deleted file mode 100644 index e91ed8917..000000000 --- a/vendor/theseer/tokenizer/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# Tokenizer - -A small library for converting tokenized PHP source code into XML. - -[](https://github.com/theseer/tokenizer/actions/workflows/ci.yml) -[](https://scrutinizer-ci.com/g/theseer/tokenizer/?branch=master) -[](https://scrutinizer-ci.com/g/theseer/tokenizer/?branch=master) -[](https://scrutinizer-ci.com/g/theseer/tokenizer/build-status/master) - -## Installation - -You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/): - - composer require theseer/tokenizer - -If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency: - - composer require --dev theseer/tokenizer - -## Usage examples - -```php -$tokenizer = new TheSeer\Tokenizer\Tokenizer(); -$tokens = $tokenizer->parse(file_get_contents(__DIR__ . '/src/XMLSerializer.php')); - -$serializer = new TheSeer\Tokenizer\XMLSerializer(); -$xml = $serializer->toXML($tokens); - -echo $xml; -``` - -The generated XML structure looks something like this: - -```xml -<?xml version="1.0"?> -<source xmlns="https://github.com/theseer/tokenizer"> - <line no="1"> - <token name="T_OPEN_TAG"><?php </token> - <token name="T_DECLARE">declare</token> - <token name="T_OPEN_BRACKET">(</token> - <token name="T_STRING">strict_types</token> - <token name="T_WHITESPACE"> </token> - <token name="T_EQUAL">=</token> - <token name="T_WHITESPACE"> </token> - <token name="T_LNUMBER">1</token> - <token name="T_CLOSE_BRACKET">)</token> - <token name="T_SEMICOLON">;</token> - </line> -</source> -``` |