php-extended / php-data-provider-json
An implementation of php-extended/php-data-provider-json that interprets json data
Package info
gitlab.com/php-extended/php-data-provider-json
pkg:composer/php-extended/php-data-provider-json
9.0.8
2026-07-21 08:46 UTC
Requires
- php: >=8.2
- php-extended/php-data-provider-interface: ^9
Requires (Dev)
This package is auto-updated.
Last update: 2026-07-21 06:48:48 UTC
README
An implementation of php-extended/php-data-provider-json that interprets json data.
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.pharfrom their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-data-provider-json ^9
Basic Usage
You may use this library the following way :
use PhpExtended\DataProvider\JsonFileDataProvider;
$provider = new JsonFileDataProvider('/path/to/json.file', true);
foreach($provider->provideIterator() as $line => $data)
{
// do something
}
You may also use an in-memory data provider with a string as raw json data using
the PhpExtended\DataProvider\JsonStringDataProvider.
License
MIT (See license file).