PHPackages                             blister/php-linkedlist - 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. blister/php-linkedlist

ActiveLibrary

blister/php-linkedlist
======================

A speedy DoubleLinkedList data structure implementation.

0.1.0(2y ago)04[6 issues](https://github.com/blister/php-linkedlist/issues)MITPHPPHP &gt;=7.0

Since Aug 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/blister/php-linkedlist)[ Packagist](https://packagist.org/packages/blister/php-linkedlist)[ RSS](/packages/blister-php-linkedlist/feed)WikiDiscussions main Synced 1mo ago

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

php-linkedlist
==============

[](#php-linkedlist)

[![Build Status](https://github.com/blister/php-linkedlist/actions/workflows/php.yml/badge.svg)](https://github.com/blister/php-linkedlist/actions/workflows/php.yml/badge.svg)

A speedy LinkedList and DoubleLinkedList data structure implementation in PHP.

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

[](#installation)

```
composer require blister/linkedlist
```

Usage
-----

[](#usage)

```
$list = new Blister\LinkedList();

// Add to the end of the LinkedList
$list->push('Hello!');
$list->push('World!');
$list->push(array('key' => 'val'));
$list->push(true);
$list->push('Last!');

// Add to the front of the LinkedList
$list->unshift('New First!');

// Get the length of the LinkedList
$len = $list->length; // 6

// Searching inside the list
$found_index = $list->index('World!'); // 2
$found = $list->find('World');         // true
$found = $list->find('Missing');       // false

// removing elements
$last   = $list->pop();            // 'Last!'
$first  = $list->shift();          // 'First!'
$middle = $list->remove('World!'); // 'World!'
$third  = $list->removeAt(1);      // array('key' => 'val')
```

Tests
-----

[](#tests)

This LinkedList implementation comes with a full suite of PHPUnit tests.

```
composer run-script test
```

Future
------

[](#future)

- `toArray():array`
- `findAll(mixed $needle):array`
- `fill(int $count, mixed $value):bool`
- `findFromTail(mixed $needle):mixed`
- `indexFromTail(mixed $needle):int`
- `print():void`

Author
------

[](#author)

Eric Ryan Harrison, [@blister](https://twitter.com/blister)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e203d5714563d4f283e6cdf728c662dd5c6b8b19eb4c66e2c706ad5d03ada94?d=identicon)[blister](/maintainers/blister)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/blister-php-linkedlist/health.svg)

```
[![Health](https://phpackages.com/badges/blister-php-linkedlist/health.svg)](https://phpackages.com/packages/blister-php-linkedlist)
```

PHPackages © 2026

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