24/10
2015
dev-master
9999999-devRecord and replay php requests
MIT
The Requires
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Record and replay php requests
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)
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');
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);
Record and replay php requests
MIT