Weave 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

Similar Laravel Package

tabuna/similar

Laravel package that adds similarity search to Eloquent models, making it easy to surface related records, recommendations, and duplicate candidates from your existing database with configurable matching and a simple API.

View on GitHub
Deep Wiki
Context7

Unlock the power of effortless grouping by identifying similar strings based on shared topics within a set of sentences.

Frequently asked questions about Similar
What is tabuna/similar used for in Laravel?
tabuna/similar is a lightweight Laravel package for finding similar records in your existing database through an Eloquent-friendly API. It is useful for surfacing related items, building simple recommendations, and identifying duplicate candidates without adding a full search service. The package compares model content and returns ranked matches based on configurable rules and thresholds.
How do I install tabuna/similar with Composer?
Install the package with Composer using composer require tabuna/similar. Then follow the package documentation for any configuration publishing or setup steps your Laravel version requires. Laravel package auto-discovery typically handles service provider registration, but verify this against the package docs and your application structure.
Does tabuna/similar support Laravel 9 and PHP 8?
Release 2.2.0 adds PHP 8 and Laravel 9 support, so it aligns with modern Laravel runtime expectations. You should still confirm the exact PHP 8.x and Laravel 9.x Composer constraints and whether that support is covered by the package CI tests. Applications on older PHP or Laravel versions may need a platform upgrade before adopting 2.2.0.
How does tabuna/similar compare Eloquent models and rank similar records?
The package provides an Eloquent-friendly API for comparing model content and retrieving the closest matches. It uses configurable comparison rules and match thresholds to decide which records are considered similar and how they are ranked. The ranked results can then be used in controllers, jobs, or queues for related items and recommendations.
Can I configure match thresholds and comparison rules in tabuna/similar?
Yes, tabuna/similar is described as having configurable comparison rules and match thresholds. The exact configuration options and publishing steps should be checked in the package documentation. Tune thresholds carefully and test against representative data because stricter or looser matching changes both result quality and the number of matches returned.
Is tabuna/similar suitable for duplicate detection and recommendations?
Yes, it is intended for related items, recommendations, and duplicate detection where you want to compare records already stored in your Laravel database. It is a small, focused package rather than a full search platform, so it works best when your similarity needs are modest and Eloquent-based. For very large datasets or advanced fuzzy search requirements, evaluate performance and consider a dedicated search service.
How should I test tabuna/similar in a Laravel application?
Use a test database with known similar and dissimilar records, then assert that the package returns the expected ranked matches and respects your configured thresholds. Run your full application test suite after any Composer update, especially when moving to PHP 8 or Laravel 9. Add CI coverage for the PHP and Laravel versions you support and validate the upgrade in staging before production.
What production performance concerns should I check before using tabuna/similar?
The 2.2.0 release notes do not indicate scaling or performance changes, so treat performance as neutral until you benchmark it. If similarity lookups sit on a hot path, test them under expected load and review query behavior against your data size. Also watch for Composer dependency conflicts, PHP 8 deprecation warnings, stale configuration or cache after deployment, and service provider or autoload issues.
What are alternatives to tabuna/similar for similarity search in Laravel?
Alternatives include Laravel Scout with a search engine such as Meilisearch, Algolia, or Elasticsearch, database full-text search features, or custom similarity logic tailored to your models. tabuna/similar is a lightweight, Eloquent-focused option with minimal setup, while dedicated search services are better for large-scale fuzzy matching and advanced ranking. Choose based on data size, accuracy needs, and operational overhead.
Is tabuna/similar actively maintained and safe to upgrade?
Release 2.2.0 shows ongoing compatibility maintenance for PHP 8 and Laravel 9, but the release information is sparse and does not by itself prove long-term support. Confirm release cadence, maintainer responsiveness, CI coverage, and the package support policy before relying on it. Pin the package version, upgrade in a dedicated branch, run your test suite, and keep the previous Composer lock file as a rollback path.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo