PHPackages                             irmmr/handle - 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. irmmr/handle

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

irmmr/handle
============

A basic library for make coding easy from AMA

V1.1.7(4y ago)037MITPHPPHP &gt;=7.2

Since Mar 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/irmmr/ama-handle)[ Packagist](https://packagist.org/packages/irmmr/handle)[ RSS](/packages/irmmr-handle/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (19)Used By (0)

 [ ![packagist](https://camo.githubusercontent.com/f675d146bed30864e818305d538b59a22980adcc44c5af8b451a5b94111357be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69726d6d722f68616e646c653f7374796c653d666c6174) ](https://packagist.org/packages/irmmr/handle) [ ![license](https://camo.githubusercontent.com/a1c183f3d084459512c0274e918bb2e70c441cb8cf4b10c15a2adf487a8b55ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f69726d6d722f616d612d68616e646c653f7374796c653d666c6174) ](https://github.com/irmmr/ama-handle/blob/main/LICENSE) [![php version support](https://camo.githubusercontent.com/411e41fd310b58afa40082d59ed793e48137bac57283d74f362f84c1ea61c967/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f69726d6d722f68616e646c652f56312e302e323f7374796c653d666c6174)](https://camo.githubusercontent.com/411e41fd310b58afa40082d59ed793e48137bac57283d74f362f84c1ea61c967/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f69726d6d722f68616e646c652f56312e302e323f7374796c653d666c6174) [![stable version](https://camo.githubusercontent.com/7f14b251dba0339c240d46cf4d2633812da620a948aa9e5d83e7b5bfbf19e883/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d56312e312e352d7265643f7374796c653d666c6174)](https://camo.githubusercontent.com/7f14b251dba0339c240d46cf4d2633812da620a948aa9e5d83e7b5bfbf19e883/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d56312e312e352d7265643f7374796c653d666c6174)

What is ama-handle?
===================

[](#what-is-ama-handle)

A library with which you can use a series of ready-made functions and classes to make your coding task easier. This handle uses different packages and classes.

Install
=======

[](#install)

You can use `Composer` to install this library. If you want to use this library, it is better to always use the latest version or stable versions.

```
composer require irmmr/handle

```

```
{
    "require": {
        "irmmr/handle": "^1.1.5"
    }
}
```

Error reporting
===============

[](#error-reporting)

You can manage errors that occur in the handle, but note that this only includes errors that have already been specified. This section contains two items, but you only need to specify a listener.

```
use Irmmr\Handle\App\Err;

// listen database errors
Err::listen(ERROR_TYPE, function ($error) {
    if (is_null($error)) return;
    echo $error->getMessage();
});
```

> The error type is **Irmmr\\Handle\\App\\Exception\\Main**, which is a instance of **\\Exception**.

Use
===

[](#use)

If you are ready to use the library, you can use all the classes in folder `/src`. There are no restrictions on the use of these items and they are constantly updated.

- Working with data

```
use Irmmr\Handle\Data as D;

// Remove from string . return: Homan!
echo D::remove()->str('Hello man!', 'e', 'l', ' ');

// Remove from string. return: Homan!
echo D::remove()->strFormat('Hello man!', '/[el ]/');
```

- Working with import

```
use Irmmr\Handle\Package as Pack;
use Irmmr\Handle\Data;

// example import with require
// `import` scans all php files in `my-dir`
Pack::import('test.php', 'file.php', 'my-dir')
    ->base(__DIR__)->do();

// block some files
Pack::import('one-dir')
    ->base(__DIR__, 'include')
    ->filter(function ($file) {
        return !Data::check()->includes($file, '/vendor/');
    })->do();
```

- Working with method

```
use Irmmr\Handle\Method;

// get method type
echo Method::type();

// check method type
if (Method::isType(Method::GET)) {
    echo 'It\'s GET.';
}

// check and get a sample GET method
if (Method::get()->has('page')) {
    $page = Method::get()->get('page');
} else {
    $page = 1;
}

// or
$page = Method::get()->get('page') ?? 1;

// or with default value
$page = Method::get()->get('page', 1);
```

- Working with file

```
use Irmmr\Handle\Filer as F;

// get file size
echo F::file()->size('path.txt');

// make dir
F::dir()->make('my-dir');
```

- Extract files from dirs

```
use Irmmr\Handle\Filer;

// extract all php and html files example (return array)
$files = Filer::extract('.')    // path
    ->base(__DIR__)             // main directory
    ->loop()                    // enable loop dirs
    ->extensions('php', 'html') // set valid extensions
    ->get();

// extract some folders of project
$files = Filer::extract('*.json', 'src', 'other-dir')
    ->base(__DIR__, 'vendor')
    ->loop()
    ->extensions('json')
    ->get();
```

And other items that will be added later.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~23 days

Recently: every ~86 days

Total

18

Last Release

1549d ago

PHP version history (2 changes)V1.0.0PHP &gt;=7.4

V1.1.3PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/523cf016e8f0fdcee80e35fdca4467d6257e309db7f3eb5bc7b5eb9fba029244?d=identicon)[irmmr](/maintainers/irmmr)

---

Top Contributors

[![irmmr](https://avatars.githubusercontent.com/u/52796853?v=4)](https://github.com/irmmr "irmmr (60 commits)")

---

Tags

handlerphpphp-libraryhandlerbase

### Embed Badge

![Health badge](/badges/irmmr-handle/health.svg)

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

###  Alternatives

[mnastalski/baselinker-php

Base.com (formerly BaseLinker) PHP library

1638.4k](/packages/mnastalski-baselinker-php)[thunderer/numbase

Convert any number between arbitrary bases

242.3k](/packages/thunderer-numbase)[delight-im/base-convert

Conversion of arbitrarily large numbers between any two bases or alphabets

161.5k](/packages/delight-im-base-convert)

PHPackages © 2026

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