dev-master
9999999-dev
proprietary
The Requires
- php >=5.4.0
The Development Requires
- phpunit/phpunit ^4.8
- fabpot/php-cs-fixer ^1.8
- phpmd/phpmd ^2.2
- mikey179/vfsstream ^1.5
- devster/ubench ^1.2
by Daan Biesterbos
Wallogit.com
2017 © Pedro Peláez
The goal of this package is to help you read large trace files and and to offer build in features to make it easier to to interpret each entry. Most examples I could find on the web would simply create a huge array. I don't like this approach. The goal of this package is to implement a basic reader capable of processing large files. For each line the reader will instantiate an object. The latter will add a little bit of overhead. I think this is acceptable since we are processing only one object per iteration., (*1)
This package does not analyze the contents of the trace file. The aim is to help users develop their own interpreter without having to worry about the actual reading., (*2)
For more examples go to the examples folder., (*3)
// Create reader from file path $reader = EntryReader::fromFile(new EntryFactory, __DIR__ . '/../assets/trace.out.xt'); // Or create reader from a pointer $fp = fopen(__DIR__ . '/../assets/trace.out.xt'); $reader = new EntryReader(new EntryFactory, $fp);
/** @var \Leadtech\XDebugTraceReader\Trace\TraceEntryInterface $entry */
while($entry = $reader->read()) {
var_dump($entry);
}
proprietary