alexcrawford/lexorank-php
Simple PHP implementation of Atlassian JIRA’s LexoRank for ordering database lists. Reorder items in O(1) by updating only the moved row’s rank value, avoiding mass updates and costly transactions.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us build high-performance ranking systems—like leaderboards or trending feeds—without custom engineering. For example, we could launch a gamified onboarding feature in weeks instead of months, using a battle-tested algorithm that scales with user growth. It’s open-source, lightweight, and integrates seamlessly with our Laravel stack, reducing long-term maintenance costs."
For Engineering: "Lexorank-php gives us a drop-in solution for conflict-free ordering, which is harder to implement correctly than it seems. It handles edge cases like ties and concurrent updates automatically, and the MIT license means no surprises. For [X use case], it’s a no-brainer over rolling our own—just plug it into Eloquent or a Redis-backed queue, and we’re done. The tradeoff? We’re trusting the package’s stability (last updated 2022), so we’d want to add unit tests for our specific workload."
How can I help you explore Laravel packages today?