{"id":34004681,"url":"https://github.com/codebarista/laravel-echarts","last_synced_at":"2026-04-06T01:01:54.679Z","repository":{"id":223183075,"uuid":"757123384","full_name":"codebarista/laravel-echarts","owner":"codebarista","description":"Store Apache ECharts as image","archived":false,"fork":false,"pushed_at":"2024-03-30T13:30:30.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-14T22:20:06.195Z","etag":null,"topics":["echarts","laravel","php"],"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/codebarista.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}},"created_at":"2024-02-13T21:11:30.000Z","updated_at":"2025-04-08T18:19:57.000Z","dependencies_parsed_at":"2024-03-12T20:47:19.154Z","dependency_job_id":"82711d65-e151-4ada-96e7-3bf2ed7ffae1","html_url":"https://github.com/codebarista/laravel-echarts","commit_stats":null,"previous_names":["codebarista/laravel-echarts"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/codebarista/laravel-echarts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebarista%2Flaravel-echarts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebarista%2Flaravel-echarts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebarista%2Flaravel-echarts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebarista%2Flaravel-echarts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebarista","download_url":"https://codeload.github.com/codebarista/laravel-echarts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebarista%2Flaravel-echarts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31455474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"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":["echarts","laravel","php"],"created_at":"2025-12-13T10:12:56.737Z","updated_at":"2026-04-06T01:01:54.674Z","avatar_url":"https://github.com/codebarista.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Echarts\n\nServer-side rendering of [Apache ECharts](https://echarts.apache.org/) with Laravel and Node.js. Render chart images as\npng, jpg, pdf or svg to storage.\n\n## Requirements\n\n- Node.js and npm\n\n## Installation\n\n### Install package\n\n```shell\ncomposer require codebarista/laravel-echarts\n```\n\n### Install node modules\n\n```shell\nphp artisan codebarista:node-echarts install\n```\n\nFor updates it would be a good idea to add the command to the root composer.json.\n```json\n{\n    \"scripts\": {\n        \"post-update-cmd\": [\n            \"@php artisan vendor:publish --tag=laravel-assets --ansi --force\",\n            \"@php artisan codebarista:node-echarts install\"\n        ]\n    },\n}\n```\n\n### Publish config (optional)\n\n```shell\nphp artisan vendor:publish --tag=\"config\" --provider=\"Codebarista\\LaravelEcharts\\EchartsServiceProvider\"\n```\n\n### Install pngcrush (optional)\n\n- https://pmt.sourceforge.io/pngcrush\n\n```shell\napt install pngcrush\n```\n\n## Usage\n\n### Store Chart Image\n\n```php\nuse Codebarista\\LaravelEcharts\\Actions\\StoreChartImage;\n\n// ...\n\nStoreChartImage::make()-\u003ehandle([\n    'title' =\u003e [\n        'text' =\u003e 'Basic Bar Chart',\n    ],\n    'xAxis' =\u003e [\n        'type' =\u003e 'category',\n        'data' =\u003e ['Shirts', 'Cardigans', 'Chiffons', 'Pants', 'Heels', 'Socks'],\n    ],\n    'yAxis' =\u003e [\n        'type' =\u003e 'value',\n    ],\n    'series' =\u003e [\n        [\n            'type' =\u003e 'bar',\n            'data' =\u003e [5, 20, 36, 10, 10, 20],\n        ],\n    ],\n]);\n```\n\n### Config\n\nOverwrite the default attributes from config file:\n\n```php\n$action = StoreChartImage::make()\n    -\u003ebaseOptionPath(resource_path('echarts/base-option.mjs')) // base chart to be merged\n    -\u003emimeType(MimeTypes::PNG) // PNG, JPG, PDF, SVG\n    -\u003eoptimize(true) // optimize with pngcrush\n    -\u003efilePath('app/public') // storage path\n    -\u003efileName('simple-bar-chart') // w/o extension\n    -\u003ewidth(600) // image width\n    -\u003eheight(600); // image height\n\n\n$action-\u003ehandle(options: [...]);\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebarista%2Flaravel-echarts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebarista%2Flaravel-echarts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebarista%2Flaravel-echarts/lists"}