Download the PHP
package devhereco/custom-chart without Composer
On this page you can find all versions of the php package
devhereco/custom-chart. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor devhereco Package custom-chart Short Description A Laravel package to extract data from any model to imploment it to your custom chart. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
CustomChart is a Laravel package that allows you to generate customizable chart data from your Eloquent models. It supports various aggregate functions and flexible date filtering options.
Simple Usage
1. Generate Chart Data
This function generates the data you will need to use for any chart.
Controller:
Sample Output:
Installation
1. Require with Composer
2. Add Service Provider (Laravel 5.4 and below)
Latest Laravel versions have auto-discovery and automatically add the service provider. If you're using Laravel 5.4.x and below, remember to add it to the providers array in /app/config/app.php:
Available Reports and Options
The package currently supports various types of charts/reports:
Option
Description
model (required)
The name of the Eloquent model to take data from.
title (optional)
A text title that will be passed with the data for cleaner and easier usage.
aggregate_function
You can view not only the count of records but also their SUM() or AVG(). Possible values: "count" (default), "avg", "sum".
aggregate_field
The name of the field to use in SUM() or AVG() functions. Irrelevant for COUNT().
filter_count
Show only the last filter_count intervals (e.g., days, weeks, months, years) of the specified field.
filter_interval
The interval for filtering data. Possible values: "days" (default), "weeks", "months", "years".
show_total
Boolean value to show the total values for all selected intervals.
date_format
The date format, by default: American format Y-m-d.
NOTE: From Laravel 8, all models are placed in a folder called Models (e.g., App\Models\...).
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package devhereco/custom-chart contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.