PHPackages                             bilalatli/php-sorting - 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. bilalatli/php-sorting

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

bilalatli/php-sorting
=====================

PHP Sorting Algorithms

1.0.2(6y ago)44MITPHPCI failing

Since Jul 16Pushed 6y agoCompare

[ Source](https://github.com/bilalatli/php-sorting)[ Packagist](https://packagist.org/packages/bilalatli/php-sorting)[ RSS](/packages/bilalatli-php-sorting/feed)WikiDiscussions master Synced 3d ago

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

PHP Sorting Algorithms
----------------------

[](#php-sorting-algorithms)

- Shell Sort
- Bubble Sort
- Counting Sort
- Heap Sort
- Insert Sort
- Selection Sort
- Comb Sort
- Quick Sort
- Merge Sort
- Gnome Sort
- Cocktail Sort
- OddEven Sort
- Bubble Sort With Flag
- Combined Bubble Sort
- Stupid Sort

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

[](#installation)

```
composer require bilalatli/php-sorting

```

Benchmarking
------------

[](#benchmarking)

- Set Active/Passive Benchmark ;

```
// Set Active
Sorting::setBenchmark(true): void;

// Set Passive [Default]
Sorting::setBenchmark(false): void;

```

- Get Benchmark Mode is Active or Passive ;

```
Sorting::isBenchmarkActive(): bool;

```

- Get Benchmark Status ;

```
Sorting::getBenchmark(): BALib\Sorting\Benchmark;

```

Unit Test
---------

[](#unit-test)

Try to run

```
vendor/bin/phpunit tests/SortingTests

```

Cli Benchmark \[Development\]
-----------------------------

[](#cli-benchmark-development)

```
php examples/cli-test.php {itemCount: 5000 Default}

```

### PHP Version `php ^7.*`

[](#php-version-php-7)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

2

Last Release

2495d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2118b321b52ba93158222729890b7b2c32b18025ed1ece07bcc75cecf6b275c5?d=identicon)[bilalatli](/maintainers/bilalatli)

---

Top Contributors

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

---

Tags

sortsortingbubble sortquick sortfast sortphp sortcounting sortmerge sort

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bilalatli-php-sorting/health.svg)

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

###  Alternatives

[kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6485.6M21](/packages/kyslik-column-sortable)[mottie/tablesorter

tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell.

2.6k223.5k](/packages/mottie-tablesorter)[icecave/parity

A customizable deep comparison library.

516.8M10](/packages/icecave-parity)[tuck/sort

Syntactic sugar for PHP's sorting

11547.3k](/packages/tuck-sort)[symbiote/silverstripe-gridfieldextensions

A collection of useful grid field components

971.8M235](/packages/symbiote-silverstripe-gridfieldextensions)[undefinedoffset/sortablegridfield

Adds drag and drop functionality to Silverstripe's GridField

941.2M50](/packages/undefinedoffset-sortablegridfield)

PHPackages © 2026

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