PHPackages                             oromedialab/php-utility - 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. oromedialab/php-utility

ActiveLibrary

oromedialab/php-utility
=======================

PHP Utility Library With Common Functions and Classes

06PHP

Since Jan 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/oromedialab/php-utility)[ Packagist](https://packagist.org/packages/oromedialab/php-utility)[ RSS](/packages/oromedialab-php-utility/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Utility Library
===================

[](#php-utility-library)

- [String](#)
- [DateTime](#)

String
------

[](#string)

```
namespace Oml\PHPUtility\Common;

// Add ordinal suffix to a number
// Output : 1st, 2nd, 3rd, 4th...
String::ordinalSuffix($number);

// Generate random numbers
// Output : r5Mx7faGpI7lCqb12ooGGhe2WIvnhCmUppLKkYl3wETJS8iS4G
String::random($length = 5);

// Generate chunked serial
// Output : M1WBEGZ2-H21G26KO-QU9GGTFR-XJMZ78VV-CL6OZ8YU
String::chunkedSerial($separator = '-', $charactersPerChunk = 8, $chunks = 5, $upperCase = true);
```

DateTime
--------

[](#datetime)

```
namespace Oml\PHPUtility\Common;

// Verify date in given format, by default Y-m-d format is used
// Output : Boolean
DateTime::verify($date, $format = 'Y-m-d', $strict = true);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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://www.gravatar.com/avatar/cd51203e39b90156f349612bccbe9a43aeb9808f8f2c512a1dce2fbc0f03da6a?d=identicon)[oromedialab](/maintainers/oromedialab)

---

Top Contributors

[![azhararmar](https://avatars.githubusercontent.com/u/10097624?v=4)](https://github.com/azhararmar "azhararmar (14 commits)")

### Embed Badge

![Health badge](/badges/oromedialab-php-utility/health.svg)

```
[![Health](https://phpackages.com/badges/oromedialab-php-utility/health.svg)](https://phpackages.com/packages/oromedialab-php-utility)
```

PHPackages © 2026

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