Weave Code
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

Topsort Laravel Package

marcj/topsort

Fast PHP topological sort/dependency resolver. Add string nodes with dependencies and get a valid processing order; includes grouped sorting to keep same-type items together and retrieve group metadata. Useful for UoW, DI, package managers, etc.

View on GitHub
Deep Wiki
Context7

marcj/topsort is a fast PHP topological sort / dependency resolver for ordering items so all prerequisites come first—ideal for package loading, DI graphs, and Unit of Work workflows. It includes both standard sorting and grouped sorting, letting you keep items of the same type together when batching operations.

  • String-based nodes for high performance (store object hashes if needed)
  • Add items with dependencies and get a valid execution order
  • GroupedStringSort outputs contiguous type groups plus group metadata
  • Detects ordering constraints implied by complex dependency graphs
  • Lightweight, focused API suited for small tools and large graphs
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware