Libraries tagged by tokenizer
patchwork/php-parser
30 Downloads
Fast and extensible PHP code analysis and transformation
kamthorn/thai-break
14 Downloads
Fast, high-accuracy Thai word segmentation & typographic line breaker for PHP and Laravel (dompdf, mPDF, Web)
jawitold/fqcn-extractor
104 Downloads
A lightweight PHP utility to extract the Fully Qualified Class Name (FQCN) from a PHP source file using the built-in tokenizer.
edin/lexicon
28 Downloads
Attribute-driven PHP lexer and parser toolkit with enum tokens, grammar recipes, diagnostics, and AST/BNF debugging.
cxrxexo/tiktoken
2196 Downloads
PHP version of tiktoken. PHP 7.4+ required.
codechap/yii3-context-trimmer
22 Downloads
Tokenizer-agnostic text preprocessor for trimming and optimising content for LLM context windows.
chrismcmacken/phptools
3558 Downloads
Small utilities that assist in developing applications
masnathan/sql-query-formatter
1854 Downloads
A very lightweight PHP class that reformats unreadable and computer-generated SQL query statements to human-friendly, readable text.
crazzy501/gpt-3-encoder-php
450 Downloads
PHP BPE Text Encoder/Decoder for GPT-2 / GPT-3. Based on coderevolutionplugins/gpt-3-encoder-php
robo47/php-manipulator
8 Downloads
Manipulation of php code, automated refactoring based on phps tokenizer
ecomdev/magento-translate-tool
6 Downloads
Magento translation tool that utilizes PHP Tokenizer in order to generate csv files from PHP, XML, PHTML code
zen0x7/tokenizer
22 Downloads
PHP SDK for Service Framework authentication and token generation.
your1/tokenizer-x
273 Downloads
TokenizerX calculates required tokens for given prompt
yep/tokenizer
8 Downloads
Tokenizer
webrek/tokenizers
0 Downloads
Native byte-level BPE (tiktoken-compatible: cl100k_base/o200k_base) plus WordPiece and Unigram tokenizers for PHP 8.3+, with a process-shared vocab cache. Loads HuggingFace tokenizer.json models and counts Claude/Gemini tokens via their APIs.