PHP Package: vaimo/topological-sort

Efficient PHP library for topological sorting of directed acyclic graphs (DAGs) with customizable sorting algorithms.

Current Version: 1.0.0
Last Updated: Date not available
PHP Requirement: >=5.3
Dependencies:
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Topological-sort is a powerful library designed to handle complex ordering requirements in PHP applications, especially when dealing with directed acyclic graphs (DAGs). It offers flexibility through various sorting algorithms, ensuring efficient and accurate sorting results. This library simplifies the process of ordering elements based on dependencies, paving the way for structured and optimized data processing.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.0.0

Download Download v1.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/vaimo/topological-sort/1.0.0/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.2.2/loader.php';

use Vaimo\TopologicalSort\TopologicalSort;

$obj = new TopologicalSort();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.