php-extended / php-data-provider-json
An implementation of php-extended/php-data-provider-json that interprets json data
7.0.7
2024-12-08 22:14 UTC
Requires
- php: >=8.0
- php-extended/php-data-provider-interface: ^7
Requires (Dev)
- dev-master
- 7.0.7
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.1.6
- 6.1.5
- 6.1.4
- 6.1.3
- 6.1.2
- 6.1.1
- 6.1.0
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.1
- 5.0.0
- 4.0.1
- 4.0.0
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.15
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
This package is auto-updated.
Last update: 2024-12-08 21:14:33 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.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-data-provider-json ^7
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).