PHPackages                             moharram82/helpers - 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. moharram82/helpers

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

moharram82/helpers
==================

A collection of useful PHP functions for different purposes.

1.0.2(6y ago)034MITPHPPHP ~7.0

Since May 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/moharram82/helpers)[ Packagist](https://packagist.org/packages/moharram82/helpers)[ Docs](https://github.com/moharram82/helpers)[ RSS](/packages/moharram82-helpers/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Helpers
=======

[](#helpers)

A collection of useful PHP functions for different purposes.

Functions
---------

[](#functions)

- `getMySQLEnumValues`: Extracts options from MySQL's enum field definition into an array: enum('male','female').
- `validUsername`: Checks if the supplied string is a valid username that is: english only, no spaces, starts with letters only, contains only letters, numbers and underscores but does not end with an underscore.
- `isPasswordStrong`: Checks if password is strong containing at least: 1 uppercase letter, 1 lowercase letter, 1 number, 8 characters long.
- `isEnglish`: Checks if text is in english only letters.
- `validTimestamp`: Checks if a string is a valid timestamp.
- `removeHttpProtocol`: Removes protocol prefix (http://) or (https://) from a link.
- `trimExtraSpace`: Removes any extra white spaces from the beginning, end, and in between words.
- `cleanText`: Cleans text from any html and duplicate spaces or new lines.
- `validEmail`: Checks if the string is a valid email address.
- `validDate`: Checks if string is a valid date.
- `validUrl`: Checks if string is a valid URL address.
- `calculateAge`: Calculates the age for a given birth date and returns the age in years, months, days, decimal.
- `imgResize`: Resizes an image.
- `getIP`: Returns the IP address of the current internet session.
- `getUseragent`: Returns the useragent string of the current internet session.
- `randomString`: Generates random alpha-numeric string.
- `isWindows`: Checks if the current environment is Windows based.
- `removeDir`: Recursively deletes a directory and its entire contents.
- `scanDirForFiles`: Scans a dir and return an array of files based on file extension (jpg|png|gif).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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.

###  Release Activity

Cadence

Every ~172 days

Total

3

Last Release

2197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/941c8adafc484b6bf412c588aa3a6bc6f41df4c132a78d75e6b6663df85967e9?d=identicon)[moharram82](/maintainers/moharram82)

---

Top Contributors

[![moharram82](https://avatars.githubusercontent.com/u/1148107?v=4)](https://github.com/moharram82 "moharram82 (8 commits)")

---

Tags

functionshelpersphpphphelpers

### Embed Badge

![Health badge](/badges/moharram82-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/moharram82-helpers/health.svg)](https://phpackages.com/packages/moharram82-helpers)
```

###  Alternatives

[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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