Note: Not really LinkedList data structure
Library which works with LinkedList data structure and keeps nodes sorted.
composer require lubos/sorted-linked-list
use Lubos\SortedLinkedList\SortedLinkedList;
$list = new SortedLinkedList(['Ebay', 'Amazon']);
$list->insert('ShipMonk');
print_r($list->print());
// Output:
// Array
// (
// [0] => Amazon
// [1] => Ebay
// [2] => ShipMonk
// )
- ECS
vendor/bin/ecs check src tests
- Psalm
vendor/bin/psalm
- PHPUnit
vendor/bin/phpunit tests