Download the PHP package marineusde/larapex-charts without Composer
On this page you can find all versions of the php package marineusde/larapex-charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marineusde/larapex-charts
More information about marineusde/larapex-charts
Files in marineusde/larapex-charts
Package larapex-charts
Short Description Package to provide easy api to build apex charts on Laravel
License MIT
Homepage https://github.com/marineusde/larapex-charts
Informations about the package larapex-charts
Larapex Charts
A Laravel wrapper for apex charts library.
Why should I use a fork?
- The maintainer of the original package is not really active. To many developers are waiting for a new release. I will try to keep this package up to date.
- Using phpstan and cs-fixer for better code
- I added more options for xaxis, yaxis, grid options chart animations with real classes and not just arrays
Installation
Use composer.
Usage
Basic example
In your controller add:
Remember to import the Facade to your controller with
Or importing the LarapexChart class:
Then in your view (Blade file) add:
The $chart must be an object of LarapexChart, not the controller or class that create it.
More complex example
You can create a variety of charts including: Line, Area, Bar, Horizontal Bar, Heatmap, pie, donut and Radialbar.
Better using with vite
Its better to use vite (or other plugins of this kind) for your projects, cause you cant get problems with version conflicts of apex charts:
- install npm
- install vite and vite-plugin-static-copy with npm
- copy the code in the vite.config.js
run: npm run build
now you can use the js file in your blade files:
Contributing
The author is Henning Zimmermann.
License
MIT