PHPackages                             icewind/replay - 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. icewind/replay

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

icewind/replay
==============

Record and replay php requests

14PHP

Since Oct 24Pushed 10y agoCompare

[ Source](https://github.com/icewind1991/replay)[ Packagist](https://packagist.org/packages/icewind/replay)[ RSS](/packages/icewind-replay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Replay
======

[](#replay)

[![Build Status](https://camo.githubusercontent.com/0b315c9e9e457f8b182a9602bcacf3406f1f719b98d6595cfd08f9aa687b230c/68747470733a2f2f7472617669732d63692e6f72672f69636577696e64313939312f7265706c61792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/icewind1991/replay)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/81728e77112ee7bd9db58d5fda9f5a732b868c2016381557993623f127203d09/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69636577696e64313939312f7265706c61792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/icewind1991/replay/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ea9737867f5b783ab90a23213f102d27503e430c410258a5738d2ee878bb41de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69636577696e64313939312f7265706c61792f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/icewind1991/replay/?branch=master)

Record and replay php requests

```
composer require icewind/replay

```

Records input from builtin php functions to allow replaying the request from the exact same state.

Note, **only** code using namespaces can be replayed

Usage
-----

[](#usage)

### Record

[](#record)

```
php rec.php script.php new_recording.json

```

Or

```
require 'vendor/autoload.php';

$replay = new \Icewind\Replay\Replay();
$record = $replay->record('script.php');
$record->save('new_recording.json');
```

### Playback

[](#playback)

```
php play.php script.php existing_recording.json

```

Or

```
require 'vendor/autoload.php';

$replay = new \Icewind\Replay\Replay();
$record = new \Icewind\Replay\Record\JsonRecord('existing_recording.json');
$record = $replay->play('script.php', $record);
```

TODO
----

[](#todo)

- Support recording/replaying input from builtin classes (PDO)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

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://www.gravatar.com/avatar/9ea4722a1296fa93edb98eae91349659927af69f7711cf35693be2b4c28ea618?d=identicon)[icewind1991](/maintainers/icewind1991)

---

Top Contributors

[![icewind1991](https://avatars.githubusercontent.com/u/1283854?v=4)](https://github.com/icewind1991 "icewind1991 (9 commits)")

### Embed Badge

![Health badge](/badges/icewind-replay/health.svg)

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

###  Alternatives

[aimeos/macro

Customize classes using closures

2.3k131.7k5](/packages/aimeos-macro)[nodejs-php-fallback/stylus

PHP wrapper to execute stylus node package or fallback to a PHP alternative

11135.5k4](/packages/nodejs-php-fallback-stylus)[cityofzion/neo-php

NEO blockchain implementation for PHP

152.0k](/packages/cityofzion-neo-php)[miraheze/rotten-links

A MediaWiki extension to show the state of all external links on the wiki.

101.5k](/packages/miraheze-rotten-links)

PHPackages © 2026

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