PHPackages                             gebrail/charts-reports - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gebrail/charts-reports

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gebrail/charts-reports
======================

Package to generate charts with Amcharts directly from laravel , without interacting with JavaScript.

1.0.0(3y ago)07MITPHP

Since Dec 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gebrail/charts-reports)[ Packagist](https://packagist.org/packages/gebrail/charts-reports)[ RSS](/packages/gebrail-charts-reports/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Charts Reports
==============

[](#charts-reports)

Paquete para generar gráficos con Amcharts directamente desde laravel, sin interactuar con JavaScript.

### Guia de inicio rapido

[](#guia-de-inicio-rapido)

#### Pre-requisitos

[](#pre-requisitos)

No hay configuración adicional u otros parámetros todavía.

> 🔰 Este paquete se puede usar en **Laravel 7 o superior.**

### Instalación

[](#instalación)

Puedes instalar el paquete a través de composer

```
composer require gebrail/charts-reports
```

> 🔰 Este paquete tambien ofrece la opción de generar graficas con artisan, mediante la interfaz de línea de comandos que viene junto a Laravel.

Guia rapida de como usar
------------------------

[](#guia-rapida-de-como-usar)

### Ejemplo

[](#ejemplo)

Para crear su primer gráfico, diríjase a su controlador.

#### En su controlador agregue las siguientes lineas

[](#en-su-controlador-agregue-las-siguientes-lineas)

```
$data = User::select(array('name', 'sales'))->take(3)->get();

 $options = [
              'chart_name' => 'Donut Chart',
              'chart_type' => 'Pie & Donut',
              'chart_subtype' => 'Donut',
              'field_category' => 'name',
              'field_value' => 'sales',
              'chart_data'=> $data,
           ];
$chart = new ChartReport($options);

return view('graph', compact('chart'));
```

#### Agregue las siguientes lineas a su vista

[](#agregue-las-siguientes-lineas-a-su-vista)

```

{!! $chart->renderChartLibrary() !!}
{!! $chart->renderJs() !!}

   {!! $chart->renderHtml() !!}

```

Para generar la gráfica debemos hacer el llamado de la función renderHtml(), podemos usarla en cualquier parte siempre que este dentro de la etiqueta body.

\###Resultado

[![](https://camo.githubusercontent.com/407e04d8249419ff5c5e48f4d0bc73dbc497c6153c328ddb9b244a89848e1a7c/68747470733a2f2f333135363736353239302d66696c65732e676974626f6f6b2e696f2f7e2f66696c65732f76302f622f676974626f6f6b2d782d70726f642e61707073706f742e636f6d2f6f2f73706163657325324676574a7a44454a4d735251514542636b4b74443825324675706c6f616473253246557448734e4d7373684534707556394a3638434425324653637265656e73686f74253230323032322d30362d3036253230617425323032322d34372d3231253230446f6e757425323063686172742532302e706e673f616c743d6d6564696126746f6b656e3d30666539616234622d616631332d346361632d393931322d623361663132356563356233)](https://camo.githubusercontent.com/407e04d8249419ff5c5e48f4d0bc73dbc497c6153c328ddb9b244a89848e1a7c/68747470733a2f2f333135363736353239302d66696c65732e676974626f6f6b2e696f2f7e2f66696c65732f76302f622f676974626f6f6b2d782d70726f642e61707073706f742e636f6d2f6f2f73706163657325324676574a7a44454a4d735251514542636b4b74443825324675706c6f616473253246557448734e4d7373684534707556394a3638434425324653637265656e73686f74253230323032322d30362d3036253230617425323032322d34372d3231253230446f6e757425323063686172742532302e706e673f616c743d6d6564696126746f6b656e3d30666539616234622d616631332d346361632d393931322d623361663132356563356233)

\###Graficas disponibles del paquete

- Simple Pie Chart.
- Donut Chart.
- Dragging Pie Slices
- Simple Column
- Column with Rotated Labels.
- Clustered Column Chart.
- Line &amp; Area

\##📘[Ir a la Documentación](https://gebrail.gitbook.io/charts-reports/)

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b86624afa2c2620069e70eae21af53933613682d804e9a3596fcb559d2e812f?d=identicon)[gebrail](/maintainers/gebrail)

---

Top Contributors

[![gebrail](https://avatars.githubusercontent.com/u/93060212?v=4)](https://github.com/gebrail "gebrail (1 commits)")

### Embed Badge

![Health badge](/badges/gebrail-charts-reports/health.svg)

```
[![Health](https://phpackages.com/badges/gebrail-charts-reports/health.svg)](https://phpackages.com/packages/gebrail-charts-reports)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
