PHPackages                             nammero/sorterbystrategy - 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. nammero/sorterbystrategy

ActiveLibrary

nammero/sorterbystrategy
========================

This library demonstrate usage of the Strategy pattern

00PHP

Since Mar 12Pushed 7y agoCompare

[ Source](https://github.com/nammero/SorterByStrategy)[ Packagist](https://packagist.org/packages/nammero/sorterbystrategy)[ RSS](/packages/nammero-sorterbystrategy/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SorterByStrategy library
========================

[](#sorterbystrategy-library)

This library allow to sort an array in ascending or descending order. Implemented by using the Strategy design pattern.

This template has basic configuration for [PHPUnit](https://github.com/sebastianbergmann/phpunit) and [PHP-CS-Fixer](https://github.com/friendsofphp/php-cs-fixer) libraries, configured `composer.json`with PSR-4 namespaces for source code and tests, `.gitignore` with basic files and directories to exclude them from Git, changelog file and README with cool badges :)

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

[](#installation)

For creating new project based on this template just execute the following command

```
$ composer create-project nammero/sorterbystrategy

```

> NOTE: You can add `--no-dev` right after `create-project` flag if you don't want to install dev dependencies to your project

Code style fixer
----------------

[](#code-style-fixer)

To fix the code style just run the following command

```
$ composer cs-fix

```

License
-------

[](#license)

[![license](https://camo.githubusercontent.com/87f34e8717c347ba9a330206ffc581e0123af6892a120f36cde829109e367d3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e616d6d65726f2f736f72746572627973747261746567792e737667)](LICENSE)

This project is released under the terms of the BSD-3-Clause [license](LICENSE).

Copyright (c) 2019, Eugene Zadorozhnyy

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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/242e3e2f713936630c032d31f3a1390190f556502bdc715a9d9400cebc1648b3?d=identicon)[nammero](/maintainers/nammero)

### Embed Badge

![Health badge](/badges/nammero-sorterbystrategy/health.svg)

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

PHPackages © 2026

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