{"id":25468228,"url":"https://github.com/ziwot/dataset","last_synced_at":"2025-11-04T11:30:27.679Z","repository":{"id":115590871,"uuid":"97693502","full_name":"ziwot/dataset","owner":"ziwot","description":"Helper class to format a collection of rows into a tree","archived":false,"fork":false,"pushed_at":"2017-08-01T20:30:22.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T12:47:34.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziwot.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-19T08:40:02.000Z","updated_at":"2017-07-19T08:40:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bc6261b-b8b2-415a-8ac6-cfb9344f40ed","html_url":"https://github.com/ziwot/dataset","commit_stats":null,"previous_names":["nigro64/dataset","walterproof/dataset","ziwot/dataset"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziwot%2Fdataset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziwot%2Fdataset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziwot%2Fdataset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziwot%2Fdataset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziwot","download_url":"https://codeload.github.com/ziwot/dataset/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239432822,"owners_count":19637799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-18T07:44:33.848Z","updated_at":"2025-11-04T11:30:27.634Z","avatar_url":"https://github.com/ziwot.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Dataset\n=======\n\nThis repository hosts a helper class to programmatically format an array of records into a tree structure.\n\nExample:\n\nFrom this set of records:\n\n```\n[\n  [\n    'aggregate1' =\u003e '2017-07-01',\n    'aggregate2' =\u003e 'foo',\n    'metric1' =\u003e 51,\n    'metric2' =\u003e 19,\n    'metric3' =\u003e 7,\n  ],\n  [\n    'aggregate1' =\u003e '2017-07-01',\n    'aggregate2' =\u003e 'foo',\n    'metric1' =\u003e 33,\n    'metric2' =\u003e 13,\n    'metric3' =\u003e 37,\n  ],\n  [\n    'aggregate1' =\u003e '2017-07-02',\n    'metric1' =\u003e 3,\n    'metric2' =\u003e 35,\n    'metric3' =\u003e 22,\n  ],\n]\n```\n\nWe should get this:\n\n```\n[\n  '2017-07-01' =\u003e [\n    'foo' =\u003e [\n      'metric1' =\u003e 84,\n      'metric2' =\u003e 32,\n      'metric3' =\u003e 44,\n    ],\n  ],\n  '2017-07-02' =\u003e [\n    'metric1' =\u003e 20\n    'metric2' =\u003e 29\n    'metric3' =\u003e 27\n  ]\n]\n```\n\nHere the metrics are summed, but it should be allowed to provide an aggregate function\n\n@todo tests with raw dumb data","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziwot%2Fdataset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziwot%2Fdataset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziwot%2Fdataset/lists"}