2017 © Pedro Peláez
 

library replay

Record and replay php requests

image

icewind/replay

Record and replay php requests

  • Saturday, October 24, 2015
  • by icewind1991
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Replay

Build Status Scrutinizer Code Quality Code Coverage, (*1)

Record and replay php requests, (*2)

composer require icewind/replay

Records input from builtin php functions to allow replaying the request from the exact same state., (*3)

Note, only code using namespaces can be replayed, (*4)

Usage

Record

php rec.php script.php new_recording.json

Or, (*5)

require 'vendor/autoload.php';

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

Playback

php play.php script.php existing_recording.json

Or, (*6)

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

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

The Versions

24/10 2015

dev-master

9999999-dev

Record and replay php requests

  Sources   Download

MIT

The Requires

 

The Development Requires