PHPackages                             krixikraxi/sortingalgorithms - 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. krixikraxi/sortingalgorithms

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

krixikraxi/sortingalgorithms
============================

Sorting Algorithms for Arrays

07PHP

Since Sep 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/krixikraxi/sorting-algorithms)[ Packagist](https://packagist.org/packages/krixikraxi/sortingalgorithms)[ RSS](/packages/krixikraxi-sortingalgorithms/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sorting Algorithm Library
=========================

[](#sorting-algorithm-library)

This project was created for improving my PHP skills. Learning PHP debugging unit testing, data structures and the composer.

I created a simple collection with sorting algorithms wrapped in an strategy software design pattern. [https://sourcemaking.com/design\_patterns/strategy](https://sourcemaking.com/design_patterns/strategy)

For generating the autoload files: `composer dump-autoload -o`or a complete update `composer update`

Running the Tests: `./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/SortingAlgorithmTest`

Install via Composer:
---------------------

[](#install-via-composer)

Create the `composer.json` file with this content:

```
{
  "require": {
    "krixikraxi/sortingalgorithms": "dev-master"
  },
  "minimum-stability": "dev"
}

```

Run `composer install`

Usage
-----

[](#usage)

```
use krixikraxi\sortingAlgorithms\Sorter;
require_once __DIR__.'/vendor/autoload.php';

$sorter = new Sorter("InsertionSort");
$sortedArray = $sorter->sort(array(4,1,7));

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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://avatars.githubusercontent.com/u/3456010?v=4)[Alex](/maintainers/krixikraxi)[@krixikraxi](https://github.com/krixikraxi)

---

Top Contributors

[![krixikraxi](https://avatars.githubusercontent.com/u/3456010?v=4)](https://github.com/krixikraxi "krixikraxi (3 commits)")

### Embed Badge

![Health badge](/badges/krixikraxi-sortingalgorithms/health.svg)

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

###  Alternatives

[markshust/magento2-module-pagebuildersourcecode

The Page Builder Source Code module adds a Source Code button to the toolbar of the Page Builder WYSIWYG editor.

120111.0k](/packages/markshust-magento2-module-pagebuildersourcecode)[igorw/compose

Function composition.

8424.8k](/packages/igorw-compose)

PHPackages © 2026

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