Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 24, 2024 via composer

theseer/tokenizer 1.2.2

A small library for converting tokenized PHP source code into XML and potentially other formats
Package summary
Share
0
issues
1
license
1
BSD-3-Clause
Package created
5 Apr 2017
Version published
20 Nov 2023
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-3-Clause

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
theseer/tokenizer@1.2.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
ⓘ This is a list of theseer/tokenizer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does theseer/tokenizer do?

The package theseer/tokenizer, facilitated by a PHP expert, is a small, compact library that is proficient in converting tokenized PHP source code into XML, and potentially to more formats. It generates a structured XML representation of the tokenized source code which can be used for a variety of purposes including code analysis.

How do you use theseer/tokenizer?

The use of the theseer/tokenizer library is simple and straightforward. It involves instantiating objects from the library's classes and utilizing their methods accordingly.

Firstly, you'll need to add this library to your project. Use Composer, a tool for dependency management in PHP, to install the theseer/tokenizer package, as follows:

composer require theseer/tokenizer

Or, if you need the library only for development purposes:

composer require --dev theseer/tokenizer

Now, you are ready to leverage the theseer/tokenizer in your PHP code:

$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;

In this example, 'Tokenizer' class is used to tokenize the source code obtained from 'XMLSerializer.php'. Then 'XMLSerializer' class is employed to convert these tokens into an XML format.

Where are the theseer/tokenizer docs?

Unfortunately, there doesn’t seem to be a dedicated documentation page for theseer/tokenizer. The main source of guidance and details about the library is the README file in the GitHub repository (https://github.com/theseer/tokenizer.git). You may find further insights by examining the source code or through raising queries in the project's GitHub discussion or issues page.