mbsoft31/graph-core
Lightweight, dependency-free graph library for PHP 8.2+. Build directed/undirected graphs with node and edge attributes, fast adjacency lookups, subgraph views, and export to Cytoscape.js JSON, GraphML, and GEXF (XML exports require ext-dom).
Start by installing the package via Composer (composer require mbsoft31/graph-core). Since it's a core library with minimal surface area, the primary entry points are the Graph, Vertex, and Edge classes (or interfaces, depending on implementation). Begin by modeling a simple use case—like a dependency tree or routing hierarchy—by instantiating a Graph, adding Vertex instances, and connecting them with Edges. Check the included src/ folder for class signatures, as the library likely offers no external config files or service providers (being framework-agnostic and dependency-light).
PermissionGraph, CatalogHierarchy) to enforce consistency across layers.TopologicalSort, Reachability) by extending base graph interfaces and injecting your graph instance—avoid forking the core.ArrayGraphStorage, DoctrineORMGraphStorage) to persist or hydrate graphs, keeping the business logic decoupled from persistence concerns.How can I help you explore Laravel packages today?