PHPackages                             dr2/sorting-string - 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. dr2/sorting-string

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

dr2/sorting-string
==================

Test task - Alphabetical sorting letter

04PHP

Since Nov 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dr2/sorting-string)[ Packagist](https://packagist.org/packages/dr2/sorting-string)[ RSS](/packages/dr2-sorting-string/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

test-task/sorting-string
========================

[](#test-tasksorting-string)

[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)

Класс, который принимает utf8-текст и возвращает текст, в котором буквы слов отсортированы в алфавитном порядке.

Примеры:

'lemon orange banana apple' ---&gt; 'elmno aegnor aaabnn aelpp'

'лимон апельсин банан яблоко' ---&gt; 'илмно аеилнпсь аабнн бклооя'

'αβγαβγ αβγαβγαβγ' ---&gt; 'ααββγγ αααβββγγγ'

Установка
---------

[](#установка)

Установка пакета с помощью Composer.

```
composer require dr2/sorting-string

```

Использование
-------------

[](#использование)

```
$sort_obj = new SortingString\AlphabeticalSorting();

$sort_obj->sortString('лимон апельсин банан яблоко') // илмно аеилнпсь аабнн бклооя
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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/3476656?v=4)[dr2](/maintainers/dr2)[@dr2](https://github.com/dr2)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/dr2-sorting-string/health.svg)

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

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k15.7M104](/packages/torann-geoip)[symfony/clock

Decouples applications from the system clock

432219.5M497](/packages/symfony-clock)[eluceo/ical

The eluceo/iCal package offers an abstraction layer for creating iCalendars. You can easily create iCal files by using PHP objects instead of typing your \*.ics file by hand. The output will follow RFC 5545 as best as possible.

1.2k19.1M68](/packages/eluceo-ical)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3221.4M28](/packages/ysfkaya-filament-phone-input)[magento/magento-composer-installer

Composer installer for Magento modules

7524.5M360](/packages/magento-magento-composer-installer)[geo-io/interface

Geo I/O base interfaces.

626.5M7](/packages/geo-io-interface)

PHPackages © 2026

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