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

Product Decisions This Supports

  • Feature enablement (dependency & ordering problems): This package provides ready-made implementations of classic algorithms (e.g., Dijkstra shortest-path, topological sorting) that directly map to product features like task scheduling, workflow/dependency resolution, prerequisite chains, route or cost optimization, and build/pipeline ordering. If your roadmap includes any "figure out the right order/route" capability, this is a candidate building block.
  • Build vs. buy (or "build vs. adopt"): These are solved, well-understood algorithms. The real decision is not "can we write Dijkstra?" but "do we want to own, test, and maintain it?" Adopting this package trades a small dependency and a license obligation for avoiding bespoke algorithm code and its edge-case bugs.
  • Time-to-market / scope control: A tiny, framework-agnostic library lets a team ship a graph- or ordering-based feature without a dedicated algorithm spike, keeping the roadmap on schedule for an MVP.
  • Prioritization input: Because the effort to adopt is low, the value/effort ratio can justify pulling a dependent feature forward — provided the GPL-3.0 license is compatible with your distribution model.
  • Risk register entry: With ~71 stars and unclear maintenance cadence, adopting it is a dependency risk decision, not just a technical one — this should be weighed in architecture and legal reviews, not only by engineers.

When to Consider This Package

Consider it when:

  • Your project is GPL-3.0 compatible (open-source, GPL-licensed, or internally distributed without conflicting obligations) — this is the gating criterion.
  • You are on PHP and need standard, textbook algorithms rather than anything domain-specific or performance-tuned.
  • You want a small, dependency-free, framework-agnostic library rather than pulling in a large graph/compute framework.
  • The algorithms you need are stable, well-specified classics where correctness is understood and the main risk is implementation bugs — exactly the kind of code worth reusing.
  • You can vendor and pin the code and are comfortable reading/auditing it (the source is small enough to review).

Look elsewhere when:

  • Your product is proprietary or SaaS under a non-GPL-compatible license — GPL-3.0 copyleft is a likely blocker for commercial distribution. This alone often disqualifies it; confirm with legal before scoping.
  • You need active maintenance, security response, or long-term support — low star count and unknown repository status suggest thin community support.
  • You have performance-critical or large-scale graph workloads; a general-purpose PHP library likely won't meet stringent throughput/latency targets, and a specialized or native/extension-based solution is preferable.
  • The need is narrow enough that a ~50-line in-house implementation with your own tests is lower total risk than an external dependency.
  • A permissively licensed (MIT/Apache) alternative or a maintained component (e.g., Symfony ecosystem packages) covers the same ground.

How to Pitch It (Stakeholders)

To executives: This is a small, free PHP library of well-known algorithms that can accelerate delivery of features involving ordering, scheduling, or routing — avoiding custom code and its bug risk. The main caveats are non-technical: it carries a GPL-3.0 license that may conflict with a proprietary/commercial product, and it has a small community footprint, so it should be vetted by legal and pinned/vendored by engineering. Recommendation: a low-cost enabler for GPL-compatible or internal use; not a default dependency for closed-source commercial products without legal sign-off.

To engineering: Standard, dependency-free implementations of classic algorithms (shortest path, topological sort, etc.) that are small enough to audit and adopt quickly. Treat it as vendored, pinned code rather than an actively maintained upstream: review the source, wrap it behind an internal interface, and add your own tests so you can swap it out if maintenance lapses. Confirm license compatibility before merge, and benchmark if it sits on a hot 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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons