Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Search Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Search Functionality for PHP/Laravel Applications: Enables advanced search capabilities (e.g., faceted search, geospatial queries, full-text search) without reinventing the wheel, reducing development time.
  • Roadmap for Scalable Search: Justifies investment in Solr/Lucene as a backend for search-heavy features (e.g., e-commerce filters, document retrieval, or analytics dashboards).
  • Build vs. Buy Decision: Avoids building a custom query builder for Lucene/Solr, leveraging a battle-tested, lightweight library instead.
  • Use Cases:
    • E-commerce product catalogs with filtering (price, category, attributes).
    • Document management systems with metadata search.
    • Location-based services with geospatial queries (e.g., "find restaurants within 5km").
    • Internal tools requiring complex text/field-based queries (e.g., CRM, helpdesk).

When to Consider This Package

  • Adopt if:

    • Your PHP/Laravel app requires Lucene/Solr search with minimal boilerplate.
    • You need fluent query construction (e.g., chaining methods like Criteria::term()->field('title')->query('php')).
    • Your team lacks deep Lucene expertise but needs geospatial, range, or boolean queries.
    • You’re using Sorl\Lucene (this package is a wrapper for it) and want cleaner syntax.
    • Search complexity is moderate (not enterprise-grade; consider Apache Solr’s native API or Elasticsearch for high-scale needs).
  • Look elsewhere if:

    • You’re using Elasticsearch (this is Solr/Lucene-specific).
    • You need real-time analytics or machine learning (consider dedicated search engines like OpenSearch).
    • Your team requires active maintenance (last release was 2017; evaluate risk of unpatched bugs).
    • You need GUI tools (e.g., Solr Admin UI) or distributed scaling (this is a client library, not a server).
    • Your project is time-sensitive and requires modern PHP (package may not support PHP 8+ features).

How to Pitch It (Stakeholders)

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]."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky