php-extended / php-data-reifier-object
A library that implements the php-extended/php-data-reifier-interface library
Installs: 156 265
Dependents: 0
Suggesters: 0
Security: 0
pkg:composer/php-extended/php-data-reifier-object
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).