PHPackages                             jyil/php-data-structure-algorithms - 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. jyil/php-data-structure-algorithms

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

jyil/php-data-structure-algorithms
==================================

php data structure algorithms

002PHPCI failing

Since Sep 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jyiL/php-dataStructure-algorithms)[ Packagist](https://packagist.org/packages/jyil/php-data-structure-algorithms)[ RSS](/packages/jyil-php-data-structure-algorithms/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php data structure algorithms
-----------------------------

[](#php-data-structure-algorithms)

php 数据结构和算法

### git

[](#git)

```
git clone git@github.com:jyiL/php-dataStructure-algorithms.git

```

### composer

[](#composer)

```
composer create-project jyil/php-data-structure-algorithms path

```

### install

[](#install)

```
composer install

```

### test

[](#test)

```
./vendor/bin/phpunit

```

### algorithms 算法

[](#algorithms-算法)

- Sorting

    - Bubble Sort 冒泡排序
    - Bubble Sort Optimization 冒泡排序优化
    - Bucket Sort 桶排序
    - Heap Sort 堆排序
    - Insertion Sort 插入排序
    - Merge Sort 归并排序
    - Quick Sort 快速排序
    - Radix Sort 基数排序
    - Selection Sort 选择排序
    - Comb Sort 梳排序
- Graph

    - BFS (Breadth First Search)

### Data Structure 数据结构

[](#data-structure-数据结构)

- Linked List 链表
    - Single Linked List 单链表

### designPattern 设计模式

[](#designpattern-设计模式)

- Creational 创造型

    - [Abstract Factory 抽象工厂模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/UMD5mQUIFw.png)
    - [Builder 建造者模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/JFAXquMVD9.png)
    - [Factory Method 工厂方法模式](https://iocaffcdn.phphub.org/uploads/images/201901/02/23060/AyLHGgVROw.png!large)
    - [Singleton 单例模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/bVjGzeAlPV.png)
    - [Static Factory 静态工厂模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/wZFkQjM3UG.png)
- Structural 结构型

    - [Adapter 适配器模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/oHBRHvqDHI.png)
    - [Dependency Injection 依赖注入模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/MihvMhMofO.png)
    - [Facade 门面模式](https://iocaffcdn.phphub.org/uploads/images/201803/19/1/z5RZ820Gdy.png)
- Behavioral 行为型

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

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/091f11a0bdfb28899eb734427e3544617f10f1176bec9084db9d65d207262605?d=identicon)[jyiL](/maintainers/jyiL)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jyil-php-data-structure-algorithms/health.svg)

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

PHPackages © 2026

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