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

Tiny PHP search tool shocks skeptics as commenters argue if it’s genius or just niche

TLDR: php-fts is a new search tool that runs in plain PHP with no extra services, aimed at small websites and cheap hosting. Commenters were impressed it seems genuinely useful, but they also tossed in nostalgia, picky critiques, and rival recommendations.

A new project called php-fts just pulled off a very specific kind of internet flex: it promises full-text search — basically, helping people find words and products fast — using plain old PHP files and nothing else. No extra server, no add-ons, no fancy setup. For people stuck on cheap hosting or tiny servers, that’s the dream. And the comments quickly turned from cautious curiosity into a surprisingly warm "wait... this is actually legit?" moment.

The strongest reaction was pure disbelief turning into respect. One commenter admitted they expected a toy project, then had to give credit: this thing looks usable and clearly took serious effort. Another praised the code for being clean, small, and compact, which in programmer-land is basically a standing ovation. But of course, this is the internet, so the applause came with side-eye: one person nitpicked missing test declarations, another warned it may only really suit Western languages, and someone else casually dropped the classic tech comment equivalent of "remember this old band?" by bringing up Zend’s long-lost PHP Lucene port from 15 years ago.

And then came the quiet rivalry energy: a commenter popped in with a link to a competing tool, essentially saying, "Cute, but we already use something else." That gave the thread just enough drama to keep things spicy. The vibe? Not a flame war — more like a nerdy potluck where everyone brings praise, nostalgia, and one very specific complaint.

Key Points

  • php-fts is a pure PHP full-text search engine that requires no extensions, external services, or dependencies.
  • The article targets deployments such as shared hosting and small VPS instances where running dedicated search infrastructure is not practical.
  • php-fts supports trigram-based typo-tolerant search, BM25 plus IDF relevance scoring, field boosting, and flexible filters.
  • The engine includes bulk insertion, soft delete with tombstones, atomic updates, compaction, fragmentation monitoring, and binary file storage.
  • It requires PHP 8.1+ and can be installed via Composer or manual inclusion of the source directory and autoloader.

Hottest takes

"I expected a toy project, but it is a usable library" — idoubtit
"code looks pretty clean" — cpollett
"works quite well for small-to-medium single-instance apps" — francislavoie
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.