Download the PHP package alex-yashin/php-csv-timeseries without Composer
On this page you can find all versions of the php package alex-yashin/php-csv-timeseries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-csv-timeseries
php-csv-timeseries
Usage
$writer = new \CSVTimeseries\Writer;
$writer->to(__DIR__ . '/data/');
$i = 1;
while ($i < 1000) {
//it adds current timestamp to the record and saves the record to a buffer
$writer->add(['test', $i++]);
}
//it writers the buffer to a disk and creates single file per day,
//for example: "data/2020/20200931.csv"
//save call is optional. script shutdown triggers it.
$writer->save();
$reader = new \CSVTimeseries\Reader;
$reader->from(__DIR__ . '/data/');
while ($line = $reader->next()) {
//first cell is timestamp, for example: 2020-08-28T19:25:09+00:00
$ts = array_shift($line);
//print assigned data
print_r($line);
}All versions of php-csv-timeseries with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package alex-yashin/php-csv-timeseries contains the following files
Loading the files please wait ...