mbsoft31/graph-algorithms
High-performance PHP 8.2+ graph algorithms library (mbsoft/graph-core). Includes PageRank and degree centrality, Dijkstra and A* pathfinding, BFS/DFS traversal, Tarjan SCC, Kahn topological sort, and Prim MST. Type-safe, tested, zero extra deps.
Adopt when your product requires sophisticated graph operations (e.g., weighted pathfinding with dynamic heuristics, centrality analysis for user networks, or SCC detection for dependency graphs), operates on PHP 8.2+ infrastructure, and faces performance-sensitive workloads (e.g., 1,000+ node graphs with sub-5ms operation targets). Avoid when the problem is trivial (e.g., unweighted BFS on <100 nodes), the stack is non-PHP, or dependencies conflict with mbsoft/graph-core. Also skip if your team has existing in-house solutions with identical capabilities—this package shines for teams lacking graph algorithm expertise or needing production-grade reliability out-of-the-box.
Executives: "This package delivers enterprise-grade graph algorithms out-of-the-box, enabling us to build features like real-time route optimization and social network analysis 80% faster than building in-house. With benchmarks showing sub-5ms operations on large graphs
How can I help you explore Laravel packages today?