PHPackages                             abircode/smartvisual - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. abircode/smartvisual

ActiveLibrary[Admin Panels](/categories/admin)

abircode/smartvisual
====================

A powerful Laravel package for creating stunning custom charts with AI-driven auto-detection, Livewire integration, and Vue/React support - Built from scratch by AbirCodes

v1.0.0(1mo ago)10MITPHPPHP ^8.1

Since Mar 12Pushed 1mo agoCompare

[ Source](https://github.com/Abir784/laravel-smartvisual)[ Packagist](https://packagist.org/packages/abircode/smartvisual)[ RSS](/packages/abircode-smartvisual/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

SmartVisual
===========

[](#smartvisual)

SmartVisual is a Laravel visualization package built from scratch by AbirCodes. It renders charts using a custom SVG engine and does not depend on Chart.js.

Features
--------

[](#features)

- Custom SVG rendering engine
- Bar, Line, Radar, Pie, Doughnut charts
- AI chart auto-detection
- JSON and SVG export out of the box
- Optional PNG export (requires Imagick)
- Optional PDF export (requires dompdf)
- Live dashboard friendly output

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 9, 10, 11, or 12

Installation (Step by Step)
---------------------------

[](#installation-step-by-step)

### 1) Install package

[](#1-install-package)

```
composer require abircode/smartvisual
```

### 2) Publish package config

[](#2-publish-package-config)

```
php artisan vendor:publish --provider="Apack\SmartVisual\SmartVisualServiceProvider"
```

### 3) Clear cached config

[](#3-clear-cached-config)

```
php artisan optimize:clear
```

Basic Usage
-----------

[](#basic-usage)

```
use Apack\SmartVisual\Facades\Chart;

$chart = Chart::bar()
    ->setTitle('Monthly Sales')
    ->setLabels(['Jan', 'Feb', 'Mar', 'Apr'])
    ->addDataset('Revenue', [120, 180, 160, 210]);

$svg = $chart->render();
```

Example Controller
------------------

[](#example-controller)

Create `app/Http/Controllers/ChartController.php`:

```
