PHPackages                             zawiszaty/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zawiszaty/sorted-linked-list

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zawiszaty/sorted-linked-list
============================

Sorted linked list library with strict type safety for int or string values.

1.0.0(4mo ago)10proprietaryPHPPHP ^8.2CI passing

Since Feb 19Pushed 4mo agoCompare

[ Source](https://github.com/zawiszaty/sorted-linked-list)[ Packagist](https://packagist.org/packages/zawiszaty/sorted-linked-list)[ RSS](/packages/zawiszaty-sorted-linked-list/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

SortedLinkedList
================

[](#sortedlinkedlist)

Strictly typed, always-sorted singly linked list for PHP.

Overview
--------

[](#overview)

This library provides a `SortedLinkedList` data structure that:

- keeps values in ascending order after every write operation,
- supports one type per instance: `int` or `string`,
- allows duplicates with stable order for equal values,
- exposes a small and predictable API.

Project specification:

- `requirements.md`
- `HLD.md`

Requirements
------------

[](#requirements)

- PHP `^8.2`
- Composer

Installation
------------

[](#installation)

```
composer install
```

Quick Start
-----------

[](#quick-start)

```
