PHPackages                             senttor/trainingsortinglibrary-project - 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. senttor/trainingsortinglibrary-project

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

senttor/trainingsortinglibrary-project
======================================

This is a training library for sorting array

00PHP

Since Mar 5Pushed 7y agoCompare

[ Source](https://github.com/senttor/Sorting)[ Packagist](https://packagist.org/packages/senttor/trainingsortinglibrary-project)[ RSS](/packages/senttor-trainingsortinglibrary-project/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sorting library
===============

[](#sorting-library)

This is a test Sorting library.

[![Custom badge](https://camo.githubusercontent.com/49a82259a333b2e0f821a8df1edd1bb22398577aeb6aaae462d6ecca09c23c83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656e74746f722d747261696e696e67736f7274696e676c6962726172792d2d70726f6a6563742d7265642e737667)](https://camo.githubusercontent.com/49a82259a333b2e0f821a8df1edd1bb22398577aeb6aaae462d6ecca09c23c83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73656e74746f722d747261696e696e67736f7274696e676c6962726172792d2d70726f6a6563742d7265642e737667)

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

[](#installation)

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

```
$ composer require senttor/trainingsortinglibrary-project

```

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

Main changes that you need to do:

1. Update `name`, `description`, `keywords`, `authors` section of the `composer.json` file, [lines 2-4](composer.json#L2-L4), [9-10](composer.json#L9-L10).
2. Update header template in `.php_cs` file, [lines 4-9](.php_cs#L4-L9).
3. Update copyright in `LICENSE` file, [line 3](LICENSE#L3).

Other changes that you may do:

1. Change namespace for source code in `composer.json`, [line 23](composer.json#L23) and for tests [line 28](composer.json#L28).
2. Change PHP version in `composer.json` [line 15](composer.json#L15).
3. Change rules for code style in `.php_cs` file.
4. Add some new files and directories to `.gitignore` file to exclude them from Git.
5. Update readme according to your project
6. Update changelog according to your project

Usage
-----

[](#usage)

input value

```
 1.$stringArray = ['first', 'second', 'third', 'fourth'];

```

goal - asc sorting Choosing Asc sort

```
2. $asc_sort = new \Vendor\Sorting\AscSorting();
   $strategy_asc = new \Vendor\Sorting\Strategy( $asc_sort );

```

sorting...

```
 $strategy_asc->sorting($stringArray)

```

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/af5f1c3552d6f122f537f911ed56699dc28c504449f24d0fec203d392deb6790/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73656e74746f722f536f7274696e672e737667)](LICENSE)

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

Copyright (c) 2018, c

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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/05ca1ef075ed1f52785a815be4a0c1e073349f43e643ae12debe470e2ee86550?d=identicon)[senttor](/maintainers/senttor)

---

Top Contributors

[![senttor](https://avatars.githubusercontent.com/u/39006781?v=4)](https://github.com/senttor "senttor (28 commits)")

### Embed Badge

![Health badge](/badges/senttor-trainingsortinglibrary-project/health.svg)

```
[![Health](https://phpackages.com/badges/senttor-trainingsortinglibrary-project/health.svg)](https://phpackages.com/packages/senttor-trainingsortinglibrary-project)
```

###  Alternatives

[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[norberttech/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

28310.8k](/packages/norberttech-aceeditor-bundle)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)[chefkoch/morphoji

A library to convert UTF-8 emoji characters to latin1 placeholders and vice versa.

14136.9k1](/packages/chefkoch-morphoji)[epessine/axis

Draw charts with a simple API on Laravel

265.6k](/packages/epessine-axis)

PHPackages © 2026

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