PHPackages                             rkb/convert\_to\_ordinal - 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. rkb/convert\_to\_ordinal

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

rkb/convert\_to\_ordinal
========================

This package has converted any valid number and string to it's ordinal number.

03[1 PRs](https://github.com/hossainrkb/ordinal_number_gen/pulls)PHP

Since Apr 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hossainrkb/ordinal_number_gen)[ Packagist](https://packagist.org/packages/rkb/convert_to_ordinal)[ RSS](/packages/rkb-convert-to-ordinal/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Ordinal Number conversion from any valid Number and String
==========================================================

[](#ordinal-number-conversion-from-any-valid-number-and-string)

- This package has converted any valid number and string to it's ordinal number.

Installation
============

[](#installation)

use composer require rkb/convert\_to\_ordinal to install

Usage
=====

[](#usage)

```
include './vendor/autoload.php';

$data = new App\OrdinalNumber();

$value = 1441;

$value = "4    4,4,55,55,1441";

echo ($data->ordinal_convert($value));
```

Output
======

[](#output)

```
     "1st",
     "2nd",
     "3rd",
     "4th",
     "5th",
     "6th",
     "7th",
     "8th",
     "9th",
     "10th",
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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://avatars.githubusercontent.com/u/39438732?v=4)[Rakib](/maintainers/hossainrkb)[@hossainrkb](https://github.com/hossainrkb)

---

Top Contributors

[![hossainrkb](https://avatars.githubusercontent.com/u/39438732?v=4)](https://github.com/hossainrkb "hossainrkb (6 commits)")

### Embed Badge

![Health badge](/badges/rkb-convert-to-ordinal/health.svg)

```
[![Health](https://phpackages.com/badges/rkb-convert-to-ordinal/health.svg)](https://phpackages.com/packages/rkb-convert-to-ordinal)
```

###  Alternatives

[apen/additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

14157.8k](/packages/apen-additional-reports)

PHPackages © 2026

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