PHP-FTS
Pure PHP full-text search library that keeps its index in files on disk, with typo tolerance, filters and facets.
php-fts is a full-text search library written in PHP. It keeps its index in a directory of files, so it needs no database and no separate search service. Projects add it with Composer or by copying the source into the project. The README states that a request opens the index directory, reads what it needs and ends, so the library runs inside each request rather than as a process of its own. Documents are stored in that directory in readable form. The library requires PHP 8.1 or higher, and Olivier maintains it.
Worth knowing
The README says to keep the index directory outside the web root, because the documents can be read from its files. The 2.0 release cannot open an index written by the 1.x line, so a 1.x index is rebuilt from the source data.
Identity
- Status
- Active
- Maintainer
- Olivier3
- Maintained by
- Individual
- First release
- 20264
Rendering and deploy
- Runs as
- Per request2
- Install with
- composer require2
Releases
Adoption
Sources
- 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/olivier-ls/php-fts - 2026-10-28: links, Categories, Runtime, Install with, Content storage, Runs as
github.com/olivier-ls/php-fts/blob/main/README.md - 2026-10-28: Maintainer, License, License model
github.com/olivier-ls/php-fts/blob/main/LICENSE - 2026-10-28: Minimum runtime, First release
repo.packagist.org/p2/ols/php-fts.json - 2026-10-28: Current major version, Last release
api.github.com/repos/olivier-ls/php-fts/releases/latest - 2026-10-28: Packagist downloads
packagist.org/packages/ols/php-fts.json - 2026-10-28: Contributors
api.github.com/repos/olivier-ls/php-fts/contributors