PHPackages                             dm/runtime - 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. dm/runtime

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

dm/runtime
==========

PHP-library for disable and override standard functions in real-time

1.0.0(12y ago)5221PHPPHP &gt;=5.3.0

Since Nov 7Pushed 12y agoCompare

[ Source](https://github.com/dmkuznetsov/php-runtime)[ Packagist](https://packagist.org/packages/dm/runtime)[ RSS](/packages/dm-runtime/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

PHP Runtime
===========

[](#php-runtime)

Now, you can disable and override standard functions in real-time.

```

CODE;

// thrown exception, becouse str_replace disabled
Dm\Runtime\Api::code($code)
    ->disableFunction('str_replace')
    ->execute();
```

```

CODE;

// output 111
echo str_replace( 0, 1, 100 );

// output 000
Dm\Runtime\Api::code($code)
    ->overrideFunction('str_replace', function ($search, $replace, $subject) {
        echo str_replace($replace, $search, $subject);
    })
    ->execute();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4572d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81781c2d19f41ae031eded90a80fab0b4cc0ddbe825651d5eb77ad2983447c62?d=identicon)[dmkuznetsov](/maintainers/dmkuznetsov)

---

Tags

phpfunctionsHOOKoverridedisable

### Embed Badge

![Health badge](/badges/dm-runtime/health.svg)

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

###  Alternatives

[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[nilportugues/php_todo

Looks into the code using a user-defined list of to-do phrases and stops commit if the total amount increased or is above a threshold.

1210.0k](/packages/nilportugues-php-todo)[nilportugues/php_backslasher

Adds all PHP internal functions to its namespace by adding backslash to them. Improves the application's performance when OPCache is on.

889.3k18](/packages/nilportugues-php-backslasher)[josantonius/hook

Library for handling hooks.

222.0k10](/packages/josantonius-hook)

PHPackages © 2026

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