{"id":37262667,"url":"https://github.com/aldas/rrd-php-reader","last_synced_at":"2026-01-15T23:22:40.088Z","repository":{"id":56943953,"uuid":"125234167","full_name":"aldas/rrd-php-reader","owner":"aldas","description":"Read RRDtool files without rrd extension as ext-rrd does not support reading rrd files generated on different arch","archived":false,"fork":false,"pushed_at":"2024-02-27T17:42:07.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T22:51:27.579Z","etag":null,"topics":["php","rrd","rrdtool"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aldas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-14T15:29:22.000Z","updated_at":"2024-02-27T17:42:11.000Z","dependencies_parsed_at":"2022-08-21T07:50:46.061Z","dependency_job_id":null,"html_url":"https://github.com/aldas/rrd-php-reader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aldas/rrd-php-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldas%2Frrd-php-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldas%2Frrd-php-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldas%2Frrd-php-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldas%2Frrd-php-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aldas","download_url":"https://codeload.github.com/aldas/rrd-php-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldas%2Frrd-php-reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","rrd","rrdtool"],"created_at":"2026-01-15T23:22:39.437Z","updated_at":"2026-01-15T23:22:40.072Z","avatar_url":"https://github.com/aldas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pure PHP RRDtool file reader\n[![Build Status](https://travis-ci.org/aldas/rrd-php-reader.svg?branch=master)](https://travis-ci.org/aldas/rrd-php-reader)\n[![codecov](https://codecov.io/gh/aldas/rrd-php-reader/branch/master/graph/badge.svg)](https://codecov.io/gh/aldas/rrd-php-reader)\n\n\n\u003e Because on windows php ext-rrd can not read rrd files created on unix and vice versa.\n\u003e See https://github.com/oetiker/rrdtool-1.x/issues/759\n\nThis library supports reading:\n* rrds created on 64bit linux from 64bit Windows\n* rrds created on 64bit Windows from 64bit Linux\n\n**Only meant to export/dump data out of rrd file.**\n\nThis library is based on [javascriptRRD](http://javascriptrrd.sourceforge.net/)\n\n## Example\n\nConvert RRD to CSV:  [rrd_to_csv.php](examples/rrd_to_csv.php)\n```\n$reader = RrdReader::createFromPath('path/to/my_rrd.rrd');\n\n$fp = fopen('output.csv', 'wb');\n$reader-\u003eoutputAsCsv($fp, [\n    'ds' =\u003e 'value'\n]);\nfclose($fp);\n```\n\n\nFilter rrd: [read_rrd.php](examples/read_rrd.php)\n```\n$reader = RrdReader::createFromPath('path/to/my_rrd.rrd');\n\n$traversable = $reader-\u003egetAll([\n    'ds' =\u003e 'value',\n    'row_filter_callback' =\u003e function (int $timestamp, float $value, RrdDs $ds, RraInfo $rra) {\n        return $value \u003c 8;\n    }\n]);\n\n/** @var RrdRowValue $value */\nforeach ($traversable as $value) {\n    echo $value . PHP_EOL;\n}\n\n```\n\nOutput would be:\n```\ntimestamp=1521054891, value=6.000000, cf=AVERAGE, ds=value, step=1\ntimestamp=1521054892, value=7.000000, cf=AVERAGE, ds=value, step=1\ntimestamp=1521054891, value=6.000000, cf=MAX, ds=value, step=1\ntimestamp=1521054892, value=7.000000, cf=MAX, ds=value, step=1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldas%2Frrd-php-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faldas%2Frrd-php-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldas%2Frrd-php-reader/lists"}