A simple PHP library that implements a sorted linked list.
The list keeps values sorted automatically and supports integers or strings (not both in the same list). Includes PHPUnit tests and Docker setup for easy development.
- Add integers or strings in sorted order
- Delete elements
- Type-safe (prevents mixing strings and integers)
- Convert to array
- Iterable with foreach
- PHP 8.1+
- PHPUnit 10+
- Composer
- Docker (optional, for containerized development)
Clone the repository:
git clone
cd sorted-linked-list
composer install