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. [Utility &amp; Helpers](/categories/utility)
4. /
5. oromedialab/php-utility

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

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 4w 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 13% 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://avatars.githubusercontent.com/u/16920040?v=4)[Oro Media Lab](/maintainers/oromedialab)[@oromedialab](https://github.com/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)
```

###  Alternatives

[overtrue/laravel-emoji

An emojione bridge for Laravel.

15045.4k3](/packages/overtrue-laravel-emoji)[sivka/paginator

bootstrap-4 fork of jasongrimes/php-paginator, a lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses.

141.4k](/packages/sivka-paginator)

PHPackages © 2026

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