php-extended / php-data-reifier-object
A library that implements the php-extended/php-data-reifier-interface library
4.0.0
2022-05-31 08:42 UTC
Requires
Requires (Dev)
README
A library that implements the php-extended/php-data-reifier-interface library.
Installation
The installation of this library is made via composer.
Download composer.phar
from their website.
Then add to your composer.json :
"require": {
...
"php-extended/php-data-reifier-object": "^3"
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
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).