php_tools_components
This is an old revision of the document!
Table of Contents
PHP Tools & Resources
A curated reference of PHP tools, libraries, and self-contained applications worth knowing. The goal is to keep PHP viable and reduce dependency on heavy frameworks where lighter solutions exist.
“Don't forget PHP” — it runs everywhere, needs nothing, and often outlasts the
framework of the week.
Search
php-fts
- Repo: olivier-ls/php-fts
- What it does: Self-contained full-text search engine in pure PHP. No extensions,
no external services, no dependencies — just files.
- Algorithm: BM25 + IDF scoring (same as Lucene/Elasticsearch), trigram indexing
with O(1) lookup, field boosting, AND/OR filters.
- Sweet spot: Shared hosting, small VPS, hundreds to tens of thousands of documents.
Searches 10k docs in ~3–5ms median on shared Linux hosting.
- Install:
composer require ols/php-fts - HN discussion: Hacker News thread
Self-Hosted Applications
DokuWiki
- Site: dokuwiki.org
- What it does: File-based wiki — no database required. Stores pages as plain text
files. Highly extensible via plugins.
- Why it belongs here: A strong example of what PHP can do without a database.
Lightweight, portable, still actively maintained.
- Sweet spot: Documentation, personal wikis, intranets, project notes.
To Explore / Add
Categories to fill in over time:
- Routing — lightweight standalone routers (FastRoute, Bramus Router)
- Templating — Twig, Plates, Latte
- HTTP — Guzzle, Symfony HttpClient
- ORM / Database — Doctrine DBAL, Medoo, Idiorm
- CLI — Symfony Console component standalone
- File parsing — CSV, Markdown, XML/HTML
- Auth / Sessions — standalone JWT, session wrappers
- Testing — PHPUnit, Pest
- Static analysis — PHPStan, Psalm
- Single-file apps — tools that run as one .php file with no install
Notes
- Prefer tools that work on shared hosting (no Docker, no root) where possible.
- Flag anything that requires zero Composer dependencies separately — useful for
drop-in scenarios.
- When evaluating a tool: does it still work in 5 years if the author disappears?
File-based and self-contained wins points here.
php_tools_components.1778216072.txt.gz · Last modified: by smickster
