{"repo":"bbsnly/chartjs-php","free":true,"listed":false,"github":"https://github.com/bbsnly/chartjs-php","clone":"git clone https://github.com/bbsnly/chartjs-php.git","description":"PHP wrapper for Chart.js library","language":"PHP","stars":27,"topics":["chartjs","php","analytics","chart-generation","chart-library","charts","data-visualization","graphs","php-library","php-wrapper"],"license":"MIT","category":"analytics","readme_excerpt":"ChartJS-PHP This package transforms how you create ChartJS elements by bringing them directly into PHP. ChartJS-PHP eliminates the complexity of JavaScript when working with ChartJS charts. While ChartJS traditionally requires JavaScript implementation, our PHP solution delivers the same powerful charts through clean, efficient PHP code. By generating ChartJS elements directly in PHP, you write less code, maintain cleaner codebases, and deliver faster results. This is the definitive solution for PHP developers building data visualizations, dashboards, or any application requiring dynamic charts. Note: Include the ChartJS library in your project as specified in their official documentation. Installation Installing ChartJS-PHP is straightforward with Composer. Run this command in your project directory: Minimum Requirements: - PHP version: 8.1 or higher (tested up to PHP 8.5) - ChartJS version: 3.0 or higher (4.x recommended) Upgrading from v4? See the upgrade guide. Usage Creating charts with ChartJS-PHP is simple and intuitive. Start by instantiating the Chart class, define your data, and render your chart. The library handles all the complexity for you. Choose from our specialized chart classes for even faster development: BarChart , BubbleChart , DoughnutChart , LineChart , PieChart , PolarAreaChart , RadarChart , and ScatterChart . Here's how to create a line chart: When passing the config to Chart.js yourself, always use toJson() (or json encode($chart) ): it encodes empt","default_branch":null,"files":null,"tree":[],"storefront":"/r/bbsnly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bbsnly/chartjs-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}