PHPackages                             siva01/sorted-linked-list - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. siva01/sorted-linked-list

ActiveLibrary

siva01/sorted-linked-list
=========================

A sorted linked list implementation in PHP

01PHP

Since May 25Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/siva01c/SortedLinkedList)[ Packagist](https://packagist.org/packages/siva01/sorted-linked-list)[ RSS](/packages/siva01-sorted-linked-list/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sorted Linked Lists
===================

[](#sorted-linked-lists)

This is a library for sorting values into lists based on value type. Currently, there are only two TypeHandlers: **integer** and **string**. If you need to sort another data type, create a TypeHandler for your data type.

### How to Use:

[](#how-to-use)

`composer require siva01/sorted-linked-list`

**Example code:**

```
use SortedLinkedList\Service\ListSorterService;

$sorter = new ListSorterService();
$sorter->addToList(1);
$sorter->addToList("Apple");

$integerList = $sorter->loadList('integer');
$intValues = $integerList->getValues('ASC');

$stringList = $sorter->loadList('string');
$stringValues = $stringList->getValues('ASC');

$item = $sorter->getItemByValue('Apple');
$prevItem = $item->getPrev();
$nextItem = $item->getNext();
```

More examples can be found in: `/docs/examples/basic_usage.php`

### Composer Commands

[](#composer-commands)

- `composer cs` – Code style checks
- `composer test` – Unit tests
- `composer analyse` – PHPStan analysis

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b744c1365be03628d224306b8b6661d189fa7451a4c18365b8658eca8a41e5a6?d=identicon)[siva01c](/maintainers/siva01c)

---

Top Contributors

[![siva01c](https://avatars.githubusercontent.com/u/17080352?v=4)](https://github.com/siva01c "siva01c (4 commits)")

### Embed Badge

![Health badge](/badges/siva01-sorted-linked-list/health.svg)

```
[![Health](https://phpackages.com/badges/siva01-sorted-linked-list/health.svg)](https://phpackages.com/packages/siva01-sorted-linked-list)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
