Skip to content
Tech News
← Back to articles

Show HN: PHP-fts – Full-text search engine in pure PHP, no extensions

read original get PHP Full-Text Search Library → more articles
Why This Matters

php-fts offers a lightweight, self-contained full-text search engine built entirely in PHP, ideal for small-scale projects on shared hosting or minimal infrastructure. It enables developers to implement efficient search capabilities without external dependencies, making it accessible and easy to deploy. This development broadens the options for PHP developers seeking embedded search solutions in constrained environments.

Key Takeaways

A self-contained full-text search engine written in pure PHP.

No extensions. No external services. No dependencies. Just files.

Who is this for?

php-fts is designed for projects where deploying a dedicated search service is not an option — shared hosting, small VPS, or simply situations where you want to keep your stack minimal and portable.

If you have access to Elasticsearch, Meilisearch or Typesense and the infrastructure to run them, use those. They are more powerful and built for high-traffic, large-scale workloads.

If you don't — or if you'd rather not — php-fts gives you solid full-text search with ranked results, filters, and tolerant matching, with nothing to install and nothing to configure beyond a directory path.

It is a good fit if:

You are on shared hosting (OVH, Infomaniak, o2switch, etc.)

You want zero infrastructure overhead

Your dataset is in the range of hundreds to tens of thousands of documents

... continue reading