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.
Consider it when:
Look elsewhere when:
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.
How can I help you explore Laravel packages today?