yethee/tiktoken
This PHP port of OpenAI's tiktoken lets you encode text into tokens for models like gpt-3.5-turbo and any BPE encoding such as p50k_base. Includes vocabulary caching by default and an experimental FFI lib mode for faster encoding of larger texts.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mis3085/tiktoken-for-laravel | 0.88 | TikToken for Laravel brings OpenAI's tiktoken tokenizer to your app, letting you count, encode, and decode tokens for GPT models through a simple facade. Estimate API costs, trim prompts to fit context limits, and integrate token counts into validation, logging, or usage tracking. | 27 | — | 6 | — | 0 | 10.5 | — | MIT | 6 months ago | |
| rajentrivedi/tokenizer-x | 0.85 | Tokenizer X is a Laravel package for generating and managing secure, unique tokens in your application. Use it for API authentication, email verification, password resets, and similar flows, with configurable token length and expiry. | 91 | — | 9 | — | 0 | 1.6 | 1.5 | MIT | 2 years ago | |
| mehrab-wj/tiktoken-php | 0.85 | A PHP port of OpenAI's tiktoken tokenizer for fast, accurate BPE token counting. Supports GPT-4, GPT-3.5, and other model encodings, so you can count tokens and estimate API costs directly in Laravel or plain PHP without extra services. | 17 | — | 3 | — | 0 | 0.2 | — | MIT | 3 years ago |
|
| leovie/php-token-normalize | 0.85 | A PHP library for normalizing PHP tokens, making it easier to compare, analyze, or process code consistently. Useful for static analysis, duplicate detection, obfuscation checks, and tooling that needs a stable token representation. | 0 | 0 | 0 | 110 | 0 | 0.5 | 28.3 | BSD-3-Clause | 4 years ago | |
| juststeveking/ollama-php | 0.83 | A PHP SDK for working with Ollama, making it easy to run and interact with local large language models. Provides a clean API for text generation, chat, embeddings, and model management in your Laravel or PHP applications. | 28 | 28 | 8 | 2 | 2 | 0.9 | 0.8 | — | — | |
| symfony/ai-gemini-platform | 0.83 | Google Gemini platform bridge for Symfony AI, letting your PHP apps call Gemini's generateContent and streaming endpoints plus batchEmbedContents embeddings through a consistent Symfony AI interface. | 5 | 5 | 0 | 95K | 0 | 23.1 | 64.7 | MIT | 1 week ago | |
| mtarld/json-encoder-bundle | 0.83 | Symfony bundle that integrates mtarld/json-encoder into your app, letting you encode and decode PHP objects to and from JSON with support for denormalization, validation, and typed collections. | 10 | 10 | 1 | 0 | 0 | 0.2 | — | — | 2 years ago | |
| vipnytt/robotstxtparser | 0.83 | A PHP library for parsing robots.txt files, with support for user-agent groups, Allow/Disallow rules, wildcards, crawl-delay, and sitemap directives. Lightweight and framework-agnostic, it helps determine whether a crawler may access a given URL. | 25 | 26 | 6 | 12K | 1 | 0.4 | 36.9 | MIT | 5 years ago | |
| orhanerday/open-ai | 0.83 | A popular PHP SDK for OpenAI's API, orhanerday/open-ai offers simple methods for ChatGPT, GPT-4, DALL-E, Whisper, embeddings, and moderation. Framework-agnostic with Laravel support, streaming, and easy Composer installation. | 2,361 | — | 292 | — | 0 | 40.0 | — | MIT | 2 weeks ago |
|
| ezsystems/apache-tika-bundle | 0.83 | Symfony bundle that integrates the php-apache-tika library, letting you extract text and metadata from documents through a simple apache_tika.client service. Configure either a remote tika-server host and port or a local tika-app JAR path. | 2 | 2 | 1 | 2K | 0 | 0.0 | 26.5 | MIT | — | |
| gollumsf/url-tokenizer-bundle | 0.82 | A Symfony bundle for URL tokenization that integrates tokenizer functionality into your app, helping parse and split URLs into usable tokens for analysis, routing, or custom processing. Lightweight and easy to wire into existing Symfony projects. | 1 | 1 | 0 | 0 | 0 | 16.6 | — | GPL-3.0 | 2 months ago | |
| halilcosdu/laravel-chatbot | 0.82 | Add AI-powered chatbots to any Laravel app with this package. It ships chat models, migrations, and a customizable UI, letting you create assistants backed by OpenAI and give users context-aware conversations grounded in your application's data. | 68 | — | 6 | — | 0 | 15.2 | — | MIT | 3 months ago | |
| asyntai/bagisto-chatbot | 0.82 | Adds an AI-powered chat assistant to Bagisto storefronts, giving shoppers instant answers to product and order questions. Install via Composer, add your API credentials, and embed the chat widget with minimal configuration. | 0 | 0 | 0 | 0 | 0 | 1.9 | — | MIT | 11 months ago | |
| funstaff/tika-bundle | 0.82 | A Symfony bundle that integrates Apache Tika to extract text and metadata from documents such as PDFs, Office files, and images. It provides service configuration and a simple way to add content extraction to PHP applications, useful for search indexing and document processing workflows. | 1 | 1 | 1 | 0 | 0 | 0.0 | — | MIT | — | |
| cion/laravel-text-to-speech | 0.82 | A Laravel package for converting text to speech with a simple API, configurable voices, and support for multiple TTS providers. Easily generate audio files from text in your Laravel apps. | 43 | 43 | 18 | 517 | 5 | 2.5 | 17.8 | MIT | 2 years ago | |
| kstmostofa/dtone-php-api | 0.82 | Laravel package that wraps the DT One (Dtone) API, providing a simple interface to authenticate and interact with DT One services from your Laravel app. Includes a publishable config and helper resources (with GIFs in docs). | 1 | 2 | 0 | 0 | 0 | 0.3 | — | — | 3 years ago | |
| squareetlabs/laravel-toon | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 0.8 | — | — | 11 months ago | |
| lucianotonet/groq-php | 0.82 | A PHP SDK for the GroqCloud API that lets developers add fast LLM inference to any PHP app, with chat completions, tool calling, vision, reasoning, audio transcription, text-to-speech, batch processing, and RAG support. | 80 | 83 | 16 | 25K | 3 | 23.3 | 40.2 | MIT | 2 months ago | |
| lolli42/finediff | 0.82 | Create HTML diffs between two strings with fine-grained character or word comparison. Outputs / markup, escapes HTML entities, supports multibyte strings, and exposes internal opcodes for diff processing. PHP 8.2+ in v1.1. | 13 | 13 | 3 | 489K | 0 | 3.3 | 55.6 | MIT | 1 year ago | |
| blinq/openai | 0.82 | A Laravel-friendly wrapper around the OpenAI API, making it easy to send chat completions, generate embeddings, and call other endpoints from your PHP applications. It includes configuration, facades, and a clean, expressive interface that fits naturally into Laravel projects. | 7 | 7 | 1 | 1K | 0 | 0.1 | 30.7 | — | 2 years ago |
How can I help you explore Laravel packages today?