{"id":21418441,"url":"https://github.com/nightflyza/chartmancer","last_synced_at":"2025-07-14T05:31:00.786Z","repository":{"id":209497769,"uuid":"723361367","full_name":"nightflyza/ChartMancer","owner":"nightflyza","description":"ChartMancer - PHP library to charts generation using GD","archived":false,"fork":false,"pushed_at":"2024-11-20T13:11:09.000Z","size":89,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-20T13:41:04.884Z","etag":null,"topics":["charts","gd","graph","library","php","php-charts","php-graphs","visualization"],"latest_commit_sha":null,"homepage":"","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/nightflyza.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}},"created_at":"2023-11-25T12:29:13.000Z","updated_at":"2024-11-20T12:37:37.000Z","dependencies_parsed_at":"2023-12-16T13:58:34.061Z","dependency_job_id":"8c21a7f4-4a20-4829-845d-c13d453c7cd4","html_url":"https://github.com/nightflyza/ChartMancer","commit_stats":null,"previous_names":["nightflyza/chartmancer"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightflyza%2FChartMancer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightflyza%2FChartMancer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightflyza%2FChartMancer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nightflyza%2FChartMancer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nightflyza","download_url":"https://codeload.github.com/nightflyza/ChartMancer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225951969,"owners_count":17550465,"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":["charts","gd","graph","library","php","php-charts","php-graphs","visualization"],"created_at":"2024-11-22T19:21:29.843Z","updated_at":"2025-07-14T05:31:00.771Z","avatar_url":"https://github.com/nightflyza.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![cmlogo_transp](https://github.com/nightflyza/ChartMancer/assets/1496954/7dffd749-f232-4cd5-acb7-0cbd47903ab3)\n\n# ChartMancer\n\nChartMancer class automates the generation of graphs based on data provided in an array. \nIt utilizes the GD library to create visually appealing charts, allowing developers to easily \nvisualize and display data trends. With ChartMancer, you can customize various aspects of the \ngraph, such as colors, labels, and other chart properties, providing a versatile tool \nfor data representation in PHP applications.\n\n\n## Description\n\n- Minimalistic\n- Generates bar charts based on simple array datasets\n- Automatically adjusts chart properties to fit data\n- Outputs charts into browser or saves into files\n- Easy customizable\n\n## Requirements\n\n- PHP \u003e=5.3 (PHP 7.4, 8.2, 8.3, 8.4 is also compatible)\n- GD Library\n- Mbstring extension\n\n## Usage\n\n### Minimal example\n\n```php\n\n$cm=new ChartMancer();\n\n$data=array('Mon'=\u003e8,'Tue'=\u003e4,'Wed'=\u003e7,'Thu'=\u003e3,'Fri'=\u003e6,'Sat'=\u003e4,'Sun'=\u003e0);\n\n$cm-\u003erenderChart($data);\n\n```\n\n![basic0](https://github.com/nightflyza/ChartMancer/assets/1496954/d6ff2530-3876-40b4-aefe-cb3676a343b9)\n\n### Nested data example\n\n```php\n\n    $data = array();\n    for ($i = 0; $i \u003c= 249; $i++) {\n        $data[$i] = array(rand(0, 129), rand(0, 79), rand(0, 54), rand(0, 4));\n    }\n\n$cm=new ChartMancer();\n$cm-\u003erenderChart($data);\n\n```\n\n![basic1](https://github.com/nightflyza/ChartMancer/assets/1496954/f8e0a742-ecfd-4037-94f4-fd707792697d)\n\n### Large dataset with custom palette\n\n```php\n$legend=array('Total','Disk 1','Disk 2','Disk 3','Disk 4','Disk 5','Disk 6');\n$chartMancer-\u003esetDebug(true);\n$chartMancer-\u003esetDrawFirstColumn(true);\n$chartMancer-\u003esetChartLegend($legend);\n$chartMancer-\u003esetPalette('0-M-G!!!');\n$chartMancer-\u003esetChartTitle('Disks IO');\n$chartMancer-\u003esetChartYaxisName('w/s');\n\n$chartMancer-\u003erenderChart($data);\n```\n\n![cmdio](https://github.com/user-attachments/assets/db60757e-ec5b-410b-8814-8e10e77887cb)\n\n### Acid trip example\n\n![basic3](https://github.com/nightflyza/ChartMancer/assets/1496954/5275a93f-03e4-4895-b29f-e39927a74e5d)\n\n\n### Practical usage examples\n\n![of1](https://github.com/user-attachments/assets/50dd0afb-0a42-498a-90b0-b32b81d247dd)\n\n![of2](https://github.com/user-attachments/assets/9e755adb-ca1b-4e68-8e87-d35c68646eaa)\n\n![of3](https://github.com/user-attachments/assets/147de90b-0ef4-409e-ac22-7e4088bbe458)\n\n\n## Full class description\n\n[can be found here](https://ubilling.net.ua/api_doc/classes/ChartMancer.xhtml)\n\n## Installation\n\nThe recommended method of installing this library is via [Composer](https://packagist.org/packages/chartmancer/chartmancer)\n\n### Terminal\n\n```bash\ncomposer require chartmancer/chartmancer\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightflyza%2Fchartmancer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightflyza%2Fchartmancer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightflyza%2Fchartmancer/lists"}