Download the PHP package datalogix/laravel-charts without Composer
On this page you can find all versions of the php package datalogix/laravel-charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download datalogix/laravel-charts
More information about datalogix/laravel-charts
Files in datalogix/laravel-charts
Package laravel-charts
Short Description Laravel charts is a package to simplify the use of charts.
License MIT
Homepage https://github.com/datalogix/laravel-charts
Informations about the package laravel-charts
Laravel Charts
Laravel charts is a package to simplify the use of charts.
Features
- Autoregister your charts
- Customize routing, middleware and prefix to your charts
- Command to create a new chart
php artisan make:chart ChartName
Installation
You can install the package via composer:
The package will automatically register itself.
Configuration
The defaults are set in config/charts.php
. Copy this file to your own config directory to modify the values. You can publish the config using this command:
Commands
You can start creating charts with the typical make
command by laravel artisan.
This will create a SampleChart
class under App\Charts
namespace.
Render Charts
Laravel charts can be used without any rendering on the PHP side. Meaning it can be used and server as an API endpoint. There's no need to modify the configuration files or the chart to do such.
However, if you do not plan to develop the front-end as a SPA or in a different application and can use the
laravel Blade syntax, you can then use the @chart
helper to create charts.
The @chart
blade helper does accept a string containing the
chart name to get the URL of. The following example can be used as a guide:
All versions of laravel-charts with dependencies
composer/composer Version ^2.3
illuminate/console Version ^7.0|^8.0|^9.0
illuminate/contracts Version ^7.0|^8.0|^9.0
illuminate/http Version ^7.0|^8.0|^9.0
illuminate/support Version ^7.0|^8.0|^9.0