minimalcode/search
Single-class PHP library for building powerful q="" query strings for Solr/Lucene. Compose and combine search criteria programmatically for clean, flexible queries in your apps; lightweight API focused on constructing Solr search expressions.
Adopt if:
Criteria::term()->field('title')->query('php')).Look elsewhere if:
For Executives: "This package lets us rapidly add powerful search to our [product]—think Amazon-style filters or Google-like document retrieval—without hiring Lucene experts or building custom search logic. It’s a lightweight, Apache-licensed tool that integrates with our existing PHP/Laravel stack, cutting development time by [X]% while maintaining flexibility. The trade-off is minimal maintenance risk (last updated 2017), but the ROI for search-heavy features like [use case] is clear."
For Engineers: *"This is a fluent query builder for Solr/Lucene that replaces verbose raw queries with clean, chainable PHP methods. For example:
$results = Criteria::term()
->field('title')
->query('laravel')
->range('price', 10, 100)
->geodist('location', 5, '40.7128,-74.0060')
->execute();
It’s ideal if we’re already using Sorl\Lucene and want to avoid manual query string construction. Caveats: No PHP 8+ support, and we’d need to monitor for breaking changes in Solr/Lucene. For now, it’s a solid stopgap for [specific feature]."*
How can I help you explore Laravel packages today?