Subscribe to PHP Freaks RSS

webrek/tokenizers (v0.1.0)

syndicated from packagist.org on June 29, 2026

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.