{"id":20900551,"url":"https://github.com/phpbench/tabular-cli","last_synced_at":"2025-08-15T22:40:10.382Z","repository":{"id":66173832,"uuid":"41621684","full_name":"phpbench/tabular-cli","owner":"phpbench","description":"CLI for the tabular reporting library","archived":false,"fork":false,"pushed_at":"2015-08-30T14:57:16.000Z","size":144,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T13:15:36.563Z","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/phpbench.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}},"created_at":"2015-08-30T08:28:31.000Z","updated_at":"2018-02-17T20:20:07.000Z","dependencies_parsed_at":"2023-02-19T23:35:26.675Z","dependency_job_id":null,"html_url":"https://github.com/phpbench/tabular-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbench%2Ftabular-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbench%2Ftabular-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbench%2Ftabular-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpbench%2Ftabular-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpbench","download_url":"https://codeload.github.com/phpbench/tabular-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243286637,"owners_count":20267017,"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":"2024-11-18T11:20:40.734Z","updated_at":"2025-03-12T20:22:01.513Z","avatar_url":"https://github.com/phpbench.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Tabular CLI\n===========\n\n![travis](https://travis-ci.org/phpbench/tabular-cli.svg?branch=master)\n\nThis is a simple, demonstration, CLI for the PHPBench\n[Tabular](https://github.com/phpbench/tabular) library.\n\nTabular is a library for generating tabular reports from XML files.\n\n## Example usage\n\nCheck the examples in the `examples` folder of this repository, usage as\nfollows:\n\n````bash\n$ php bin/tabular report examples/books/books.xml examples/books/report.json\n````\n\n![tabular-cli-phpbench](https://cloud.githubusercontent.com/assets/530801/9567802/fee58ac8-4f37-11e5-837e-11fe57454066.png)\n\n## Definition file\n\nThe following is the [Tabular](https://github.com/phpbench/tabular) definition\nfor the report:\n\n````javascript\n{\n    \"classes\": {\n        \"euro\": [\n            [ \"printf\", {\"format\": \"\u003cinfo\u003e€\u003c/info\u003e%2d\"} ]\n        ]\n    },\n    \"rows\": [\n        {\n            \"group\": \"body\",\n            \"cells\": [\n                {\n                    \"name\": \"Title\",\n                    \"expr\": \"string(./title)\"\n                },\n                {\n                    \"name\": \"Stock\",\n                    \"expr\": \"string(./stock)\"\n                },\n                {\n                    \"name\": \"Price\",\n                    \"class\": \"euro\",\n                    \"expr\": \"number(./price)\"\n                },\n                {\n                    \"name\": \"Author\",\n                    \"expr\": \"string(./author)\"\n                },\n                {\n                    \"name\": \"Stock Value\",\n                    \"class\": \"euro\",\n                    \"expr\": \"number(./price) * number(./stock)\"\n                }\n            ],\n            \"with_query\": \".//book\"\n        },\n        {\n            \"cells\": []\n        },\n        {\n            \"group\": \"footer\",\n            \"cells\": [\n                {\n                    \"name\": \"Stock\",\n                    \"literal\": \"Sum \u003e\u003e\"\n                },\n                {\n                    \"name\": \"{{ cell.item }}\",\n                    \"class\": \"euro\",\n                    \"expr\": \"sum(//group[@name='body']//cell[@name='{{ cell.item }}'])\",\n                    \"pass\": 2,\n                    \"with_items\": [ \"Price\", \"Stock Value\" ]\n                }\n            ]\n        }\n    ]\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpbench%2Ftabular-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpbench%2Ftabular-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpbench%2Ftabular-cli/lists"}