PHPackages                             mrprompt/data-structure - 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. mrprompt/data-structure

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

mrprompt/data-structure
=======================

Utilities to create queue using SPL.

25PHPCI failing

Since Feb 19Pushed 6y agoCompare

[ Source](https://github.com/mrprompt/DataStructure)[ Packagist](https://packagist.org/packages/mrprompt/data-structure)[ RSS](/packages/mrprompt-data-structure/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DataStructure
=============

[](#datastructure)

[![Build Status](https://camo.githubusercontent.com/70ae376b6a8697e55831aa73b4276e52075fd451ff98d6d7b184e405afbc0eb4/68747470733a2f2f7472617669732d63692e6f72672f6d7270726f6d70742f446174615374727563747572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mrprompt/DataStructure)[![Maintainability](https://camo.githubusercontent.com/8a8950c1b0e7d6581e7eee17689db2e1e08062d57aa9ba6d487a4d62eef06ba9/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31306336333666386630356262373763373837332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/mrprompt/DataStructure/maintainability)[![Test Coverage](https://camo.githubusercontent.com/13d515dfba5bb61d0223876382f5ad8263b31019bca67e99239e40bff6826377/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f31306336333666386630356262373763373837332f746573745f636f766572616765)](https://codeclimate.com/github/mrprompt/DataStructure/test_coverage)

Some tests using [SPL Datastructures](http://php.net/manual/en/spl.datastructures.php).

- [DoublyLinked](src/DoublyLinked.php) - Implementation using [SplDoublyLinkedList](http://php.net/manual/en/class.spldoublylinkedlist.php)
- [Stack](src/Stack.php) - Implementation using [SplStack](http://php.net/manual/en/class.splstack.php)
- [Queue](src/Queue.php) - Implementation using [SplQueue](http://php.net/manual/en/class.splqueue.php)
- [Heap](src/Heap.php) - Implementation using [SplHeap](http://php.net/manual/en/class.splheap.php)
- [MaxHeap](src/MaxHeap.php) - Implementation using [SplMaxHeap](http://php.net/manual/en/class.splmaxheap.php)
- [MinHeap](src/MinHeap.php) - Implementation using [SplMinHeap](http://php.net/manual/en/class.splminheap.php)
- [Priority](src/Priority.php) - Implementation using [SplPriorityQueue](http://php.net/manual/en/class.splpriorityqueue.php)

Install
-------

[](#install)

```
composer.phar require mrprompt/data-structure
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.8% 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/9d08744966e0d5783569605da853ef945dadac0be0f613f2eba6a052861d937a?d=identicon)[mrprompt](/maintainers/mrprompt)

---

Top Contributors

[![mrprompt](https://avatars.githubusercontent.com/u/166088?v=4)](https://github.com/mrprompt "mrprompt (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/mrprompt-data-structure/health.svg)

```
[![Health](https://phpackages.com/badges/mrprompt-data-structure/health.svg)](https://phpackages.com/packages/mrprompt-data-structure)
```

###  Alternatives

[julien731/wp-review-me

A lightweight library to help you get more reviews for your WordPress theme/plugin

355.5k](/packages/julien731-wp-review-me)[plugowski/iptables

Class to manage entries in iptables.

131.6k](/packages/plugowski-iptables)

PHPackages © 2026

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