{"id":50668953,"url":"https://github.com/orchidsoftware/charts","last_synced_at":"2026-06-08T09:01:49.639Z","repository":{"id":357723185,"uuid":"1238267015","full_name":"orchidsoftware/charts","owner":"orchidsoftware","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-14T01:21:27.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-14T03:24:05.008Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orchidsoftware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"orchidsoftware","patreon":null,"open_collective":"orchid","ko_fi":null,"tidelift":null,"custom":null}},"created_at":"2026-05-14T01:10:16.000Z","updated_at":"2026-05-14T01:21:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/orchidsoftware/charts","commit_stats":null,"previous_names":["orchidsoftware/charts"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/orchidsoftware/charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fcharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fcharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fcharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fcharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orchidsoftware","download_url":"https://codeload.github.com/orchidsoftware/charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orchidsoftware%2Fcharts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34055249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-08T09:01:44.481Z","updated_at":"2026-06-08T09:01:49.634Z","avatar_url":"https://github.com/orchidsoftware.png","language":"PHP","funding_links":["https://github.com/sponsors/orchidsoftware","https://opencollective.com/orchid"],"categories":[],"sub_categories":[],"readme":"# Orchid Charts\n\n\u003e Lightweight PHP-first SVG charting library with zero JavaScript output\n\nOrchid Charts is a server-side charting library that generates clean, accessible SVG charts directly in PHP — no JS,\nno hydration, no runtime dependencies. It includes built-in dark theme support, so charts adapt cleanly to light and\ndark interfaces.\n\n\u003cimg src=\".github/demo.gif\"\u003e\n\n## Installation\n\n```bash\ncomposer require orchid/charts\n```\n\n## Quick start\n\n```php\nuse Orchid\\Charts\\LineChart;\n\n$chart = LineChart::make()\n    -\u003elabels(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'])\n    -\u003edataset('Sales', [1240, 1890, 1650, 2340, 2780, 3120])\n    -\u003edataset('Profit', [890, 1340, 980, 1670, 2010, 2450]);\n\necho $chart; // or $chart-\u003erender()\n```\n\nAll chart objects are `Stringable`, so you can render them with `echo $chart`.\n\n### Bar\n\n```php\nuse Orchid\\Charts\\BarChart;\n\necho BarChart::make()\n    -\u003elabels(['Mon', 'Tue', 'Wed'])\n    -\u003edataset('Revenue', [90, 140, 110]);\n```\n\n### Pie\n\n```php\nuse Orchid\\Charts\\PieChart;\n\necho PieChart::make()\n    -\u003elabels(['Desktop', 'Mobile', 'Tablet'])\n    -\u003edataset('Traffic', [58, 35, 7]);\n```\n\n### Donut\n\n```php\nuse Orchid\\Charts\\DonutChart;\n\necho DonutChart::make()\n    -\u003elabels(['Direct', 'Search', 'Referral'])\n    -\u003edataset('Channels', [45, 40, 15]);\n```\n\n### Percentage\n\n```php\nuse Orchid\\Charts\\PercentageChart;\n\necho PercentageChart::make()\n    -\u003elabels(['Done', 'In progress', 'Backlog'])\n    -\u003edataset('Sprint', [55, 30, 15]);\n```\n\n## Dataset formatter (tooltip value)\n\nUse a callback as the third parameter:\n\n```php\nuse Orchid\\Charts\\LineChart;\n\necho LineChart::make()\n    -\u003elabels(['Jan', 'Feb'])\n    -\u003edataset('Visitors', [172, 181], static fn (int|float $value): string =\u003e $value.' visits');\n```\n\nOr pass both color and formatter:\n\n```php\n-\u003edataset('Visitors', [172, 181], '#2563eb', static fn (int|float $value): string =\u003e $value.' visits')\n```\n\n## Support\n\nIf this project helps you build faster dashboards or removes frontend complexity, consider giving it a star — it helps\nthe project grow and stay maintained.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchidsoftware%2Fcharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forchidsoftware%2Fcharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forchidsoftware%2Fcharts/lists"}