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

Algorithm Laravel Package

fisharebest/algorithm

A small PHP library of reusable algorithm implementations, including Dijkstra shortest-path and topological sorting, for graph traversal, dependency ordering, and routing tasks in Laravel or any Composer-based PHP project.

Deep Wiki
Context7

General purpose algorithms in PHP

Frequently asked questions about Algorithm
How do I install fisharebest/algorithm in a Laravel project?
Install it with Composer using composer require fisharebest/algorithm. The package is PSR-4 autoloadable and has no Laravel service provider or config publishing step, so there is nothing to register in config/app.php. You can call its classes with a plain use statement from any service, job, or Artisan command.
Is fisharebest/algorithm Laravel-specific or framework-agnostic?
It is a framework-agnostic PHP utility library with no Laravel coupling. It has no opinion about persistence, caching, or transport, so it fits into a service layer or domain helper rather than controllers or Eloquent models. You can use the same code in Laravel, plain PHP, or any Composer-based project.
Does the package include a Laravel service provider or facade?
No. The package ships no facade, no service provider, and no publishable configuration. That keeps integration effort near zero, but it also means there are no framework affordances such as config-driven tuning or Laravel-native caching hooks. If you want those, wrap the library in your own first-party adapter.
What algorithms does fisharebest/algorithm provide?
It is described as a small library of reusable algorithm implementations, including Dijkstra shortest-path and topological sorting for graph traversal, dependency ordering, and routing tasks. The technical evaluation also notes likely transitive-closure and LCS-style routines. Confirm the exact class list against the repository source before depending on specific algorithms.
Is GPL-3.0 licensing a problem for a commercial Laravel application?
GPL-3.0 is a strong copyleft license, and linking it into a distributed or SaaS-served proprietary Laravel product raises a real compliance question. Whether Composer autoloading reaches your application code, or whether the library can be treated as an isolated internal tool, is a legal decision rather than an engineering one. Gate adoption on legal review before building critical paths on this dependency.
Is fisharebest/algorithm actively maintained?
The project is a single-maintainer, low-velocity package with modest adoption and no evident release cadence, so abandonment risk is a legitimate concern. Review the commit history and issue-response pattern over the last 24 months before committing. Also check whether there is a tagged stable release or whether you would be pinning to a branch.
How should I wrap fisharebest/algorithm for testability in Laravel?
Introduce a thin first-party interface such as GraphSolverInterface and keep all vendor namespace usage behind it. That gives you a mockable seam for tests and a one-file swap if you later replace the dependency with hand-rolled code or a different library. If the package is already used transitively, audit those call sites before layering your own adapter.
Are the algorithm results reliable enough for production critical paths?
Algorithmic correctness is load-bearing here: a subtly wrong shortest-path or ordering routine is a silent data-corruption bug, not a crash. Do not assume the test suite is comprehensive; verify coverage and validate outputs against known-good fixtures or a reference implementation. Only then trust the library in a critical path.
What PHP version and extensions does fisharebest/algorithm require?
Check the PHP constraint in the package composer.json against your runtime before committing, since a package targeting older PHP may still install but can fail static analysis or deprecation gates. Watch for any ext-* requirements that may not be present in your deployment image. There is no anticipated Laravel-version coupling, but compare the release date against your LTS target.
What are the alternatives to fisharebest/algorithm?
First identify exactly which algorithms you consume, then check whether PHP core or SPL facilities such as SplPriorityQueue and SplObjectStorage cover the need. Hand-rolled implementations or permissively licensed packages may remove both the GPL-3.0 compliance question and the single-maintainer risk. A thin adapter makes switching alternatives a contained change rather than an application-wide refactor.
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource