dragonofmercy/laravel-apexcharts

ApexCharts builder for Laravel

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/dragonofmercy/laravel-apexcharts

dev-main 2025-12-04 10:45 UTC

This package is auto-updated.

Last update: 2025-12-04 10:45:16 UTC


README

A powerful and flexible ApexCharts wrapper package for Laravel 12, providing an elegant PHP API to build beautiful, interactive charts in your Laravel applications.

Features

  • 🎨 Full ApexCharts API support with fluent PHP interface
  • 📊 Support for all chart types (Line, Bar, Area, Pie, Donut, Radar, and more)
  • 🌍 Built-in internationalization with 50+ locales
  • 🎯 Type-safe enums for chart options
  • 🔧 Highly configurable with sensible defaults
  • 💪 PHP 8.2+ with modern type declarations
  • 🚀 Easy integration with Blade templates

Requirements

  • PHP 8.2 or higher
  • Laravel 12.0 or higher

Getting Started

1. Install the package

composer require dragonofmercy/laravel-apexcharts

2. Publish assets

php artisan vendor:publish --tag=apexcharts

3. Configure

You can change the chart settings of your app from config/apexcharts.php file

Usage example

use ApexCharts\Builder;
use ApexCharts\Options\Chart;
use ApexCharts\Options\Serie;
use ApexCharts\Enums\ChartType;

$options = (new Builder())
    ->chart(Chart::make()->type(ChartType::Line)->height(350))
    ->labels(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']);
    ->serie(Serie::make()->name('Sales')->data([30, 40, 35, 50, 49, 60]))
    ->toJson();

Implementation Status

✅ annotations
✅ chart
✅ colors
✅ dataLabels
✅ fill
✅ forecastDataPoints
✅ grid
✅ labels
✅ legend
✅ markers
✅ noData
✅ plotOptions
✅ responsive
✅ series
✅ states
✅ stroke
✅ theme
✅ title
✅ subtitle
✅ tooltip
✅ xaxis
✅ yaxis

Additional Features

✅ Chart auto brush

License

This package is open-sourced software licensed under the MIT license.

Support

If this project helps to increase your productivity, you can give me a cup of coffee :)

Donate

Credits

Links