Local-first AI & search infrastructure for PHP.
Small, sharp, composable packages — vector math, embeddings, lexical search, tokenizers, chunking, scoring, and ONNX inference — that run in-process, with optional native extensions when you need the speed.
| Package | What it does |
|---|---|
vector |
In-process vector math: cosine, dot, L2, top-k, batch similarity |
embed |
Embedding helpers: normalize, chunk metadata, cache keys, provider-agnostic DTOs |
beacon |
Local semantic search: store embeddings, query top-k, filter by metadata |
lex |
Lexical search toolkit: tokenization, n-grams, BM25, inverted indexes |
tokens |
Fast tokenizers: BPE/WordPiece encode/decode, batch tokenization |
chunk |
Document chunking: overlapping windows, markdown/code-aware splits, token budgets |
score |
In-request ML scoring: exported linear/tree models for ranking & pricing |
onnx |
Thin ONNX Runtime bindings — portable models, no Python sidecar |
rerank |
Cross-encoder & feature-based reranking for lexical + vector pipelines |
Every package ships as a pure-PHP implementation with an optional
PIE-compatible native extension (*-ext) built with
typephp-builder.
| Package | What it does |
|---|---|
docker-php |
Docker Engine API client for Laravel with a Livewire management UI |
laravel-cloudflare |
Run Laravel natively on the Cloudflare Developer Platform |
cloudflare-filament |
Filament v5 dashboard for the Cloudflare ecosystem |
filament-horizon |
Horizon integration for Filament |
laravel-mcp-fetch · laravel-mcp-ops |
MCP servers: fetching & ops health |
laravel-google-workspace · laravel-notebooklm |
Google integrations |
All packages are MIT-licensed. Built by Miguel Enes.