php-extended / php-data-reifier-object
This package is abandoned and no longer maintained.
The author suggests using the php-extended/php-reifier-object package instead.
A library that implements the php-extended/php-data-reifier-interface library
6.0.7
2023-08-11 13:48 UTC
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2023-08-11 15:17:24 UTC
README
A library that implements the php-extended/php-data-reifier-interface library.
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-data-reifier-object ^6
Basic Usage
You may use this library the following way :
use PhpExtended\DataProvider\DataReifier;
$reifier = new DataReifier();
/* @var $provider \PhpExtended\DataProvider\DataProvider */
foreach($reifier->reifyIterator(Myclass::class, $provier) as $line => $data)
{
// do something with the MyClass object
}
You may also use an in-memory data provider with a string as raw csv data using
the PhpExtended\DataProvider\CsvStringDataProvider
.
License
MIT (See license file).