PHPackages                             mtkocak/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. mtkocak/algorithms

ActiveLibrary

mtkocak/algorithms
==================

Midori PHP Algorithms and Data Structures

1595HTML

Since Jul 2Pushed 10y agoCompare

[ Source](https://github.com/mtkocak/data-structures)[ Packagist](https://packagist.org/packages/mtkocak/algorithms)[ RSS](/packages/mtkocak-algorithms/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Data Structures And Algorithms using PHP
========================================

[](#data-structures-and-algorithms-using-php)

**Description**: Data Structures and Algorithms preparation for technical interview. Hence I am a php person, I had to recreate these classes using PHP to repeat CS topics.

Includes:

- Stack
- Queue
- Single Linked List
- Double Linked List
- BinarySearchTree
- Sorting Algorithms
- Bucket Sort
- Bubble Sort
- Selection Sort
- Shell Sort
- Insertion Sort
- Insertion Sort with Array
- Merge Sort
- Quick Sort
- Tests
- Other classes are not completed.

Other things to include:

- **Technology stack**: PHP, Composer and maybe bower and grunt should be installed
- **Status**: Very very Alpha [CHANGELOG](CHANGELOG.md).
- **Links to production or demo instances**
- [PHP Psr-4 Template](http://culttt.com/2014/05/07/create-psr-4-php-package/) and [Open Source Project Template](https://github.com/cfpb/open-source-project-template)

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

[](#installation)

1. Create a new directory.
2. Copy these files into the new directory.
3. composer install

Configuration
-------------

[](#configuration)

There is no configuration yet

Usage
-----

[](#usage)

Study for your next big company interview.

How to test the software
------------------------

[](#how-to-test-the-software)

just build/phpunit

Known issues
------------

[](#known-issues)

No issues yet

Getting help
------------

[](#getting-help)

This package can be used to intuitiveliy. But if you have questions you can ask me anything.

**Example**

Feel free to mail

Getting involved
----------------

[](#getting-involved)

You can fork this packade.

I did not update [CONTRIBUTING](CONTRIBUTING.md) yet.

---

Open source licensing info
--------------------------

[](#open-source-licensing-info)

1. [TERMS](TERMS.md)
2. [LICENSE](LICENSE)
3. [CFPB Source Code Policy](https://github.com/cfpb/source-code-policy/)

---

Credits and references
----------------------

[](#credits-and-references)

I already gave credits above but, you can check;

1.[PHP Psr-4 Template](http://culttt.com/2014/05/07/create-psr-4-php-package/)2.[Open Source Project Template](https://github.com/cfpb/open-source-project-template)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/983c3c55c001768e4e31e784835671f27dcccd9158a77870ffbb8167896f88f1?d=identicon)[midorikocak](/maintainers/midorikocak)

---

Top Contributors

[![midorikocak](https://avatars.githubusercontent.com/u/545472?v=4)](https://github.com/midorikocak "midorikocak (20 commits)")

### Embed Badge

![Health badge](/badges/mtkocak-algorithms/health.svg)

```
[![Health](https://phpackages.com/badges/mtkocak-algorithms/health.svg)](https://phpackages.com/packages/mtkocak-algorithms)
```

PHPackages © 2026

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