PHPackages                             mejoh/mejoh-library - 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. mejoh/mejoh-library

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

mejoh/mejoh-library
===================

Composer library for services and functionality. The package will be update from time-to-time.

00PHP

Since Sep 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hamzah014/mejohLibrary)[ Packagist](https://packagist.org/packages/mejoh/mejoh-library)[ RSS](/packages/mejoh-mejoh-library/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

mejohLibrary
============

[](#mejohlibrary)

A PHP library for service functions and utilities. Reference URL : [mejohLibrary](https://github.com/hamzah014/mejohLibrary.git)

Installation
------------

[](#installation)

You can install `mejohLibrary` via Composer. Run the following command in your terminal:

```
composer require mejoh/mejoh-library:dev-main
```

Package Reference
-----------------

[](#package-reference)

#### Module

[](#module)

NameDescription`Client`For request fetch client.`IpLocator`For getting country information by locate their IP address.`Math`For mathematic functionality usage.`Currency`For currency conversion utilities.`Validation`For validation functionality and utilities.`Hashing`For hashing utilities.`Captcha`For generating captcha.`QRCode`For generating QR Code.Usage/Examples
--------------

[](#usageexamples)

```
use MejohLibrary\IpLocator;
use MejohLibrary\Math;
use MejohLibrary\Client;
use MejohLibrary\Currency;
use MejohLibrary\Validation;
use MejohLibrary\Hashing;
use MejohLibrary\Captcha;
use MejohLibrary\QRCode;

require 'vendor/autoload.php';

////IPLocator CLASS////
$ipaddress = '34.124.137.169';
$ipLocator = new IpLocator($ipaddress);

////MATH CLASS////
$math = new Math();
echo 'remainder - ' . $math->remainder(23,3);

////CLIENT CLASS////
$baseurl = 'https://www.xe.com/currencytables/';
$request_type = 'GET';
$header = [];
$body = [];
$client = new Client();
$request = $client->config($baseurl, $header)
            ->method($request_type)
            ->body($body)
            ->request();

////CURRENCY CLASS////
$apikey = 'API_KEY_HERE';
$currency = new Currency($apikey);

////Validation CLASS////
$validation = new Validation();
$pasw = $validation->generatePassword(30);

////HASHING CLASS////
$hashing = new Hashing();
$generate = $hashing->generate($code, $value);

////CAPTCHA CLASS////
$captcha = Captcha::create()
        ->setHeight(100)
        ->setWidth(100)
        ->setText('Your Text')
        ->setFontSize(20)
        ->generateBase64();

////CAPTCHA CLASS////
$qrcode = new QRCode();
$uri = $qrcode->generate()
->setData('Test')
->setBackgroundColor('#121112')
->setForegroundColor('#ed0eb9')
->buildUri();
```

Authors
-------

[](#authors)

- [@Hamzah(Github)](https://github.com/hamzah014)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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

---

Top Contributors

[![hamzah014](https://avatars.githubusercontent.com/u/43804443?v=4)](https://github.com/hamzah014 "hamzah014 (21 commits)")

### Embed Badge

![Health badge](/badges/mejoh-mejoh-library/health.svg)

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

###  Alternatives

[hidehalo/nanoid-php

A copy of nanoid in PHP

8124.1M41](/packages/hidehalo-nanoid-php)[humanmade/hm-gutenberg-tools

Human Made Gutenberg Tools

18997.6k](/packages/humanmade-hm-gutenberg-tools)[monsieurbiz/sylius-menu-plugin

This plugins allows you to manage menus.

1570.2k1](/packages/monsieurbiz-sylius-menu-plugin)[sroze/argument-resolver

A lightweight utility to resolve method arguments based on types and names

1041.4k1](/packages/sroze-argument-resolver)

PHPackages © 2026

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