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 4d ago

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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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/bd987f402146773f4b74b7f68904708b64a976386ea69dc608f1f30670460d4c?d=identicon)[dr2](/maintainers/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

[herzult/php-ssh

Provides an object-oriented wrapper for the php ssh2 extension.

3651.1M12](/packages/herzult-php-ssh)[suin/php-rss-writer

Yet another simple RSS writer library for PHP 5.4 or later.

2651.4M20](/packages/suin-php-rss-writer)[tattali/calendar-bundle

Provides event calendar for your Symfony 8+ project. Compatible with API like Google Calendar.

166545.6k](/packages/tattali-calendar-bundle)[marvinlabs/laravel-luhn

Luhn algorithm for Laravel

108409.7k](/packages/marvinlabs-laravel-luhn)[llaski/nova-scheduled-jobs

A Laravel Nova package to view your scheduled jobs.

55421.4k](/packages/llaski-nova-scheduled-jobs)[spinen/laravel-geometry

Wrapper over the geoPHP Class to make it integrate with Laravel better.

42470.7k1](/packages/spinen-laravel-geometry)

PHPackages © 2026

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