Download the PHP package namelesscoder/numerolog-lavacharts without Composer

On this page you can find all versions of the php package namelesscoder/numerolog-lavacharts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package numerolog-lavacharts

Numero-log: Lavacharts

Build Status Coverage Status

Thin client to access Numerolog counters and render then as graphs using the Lavacharts library (https://github.com/kevinkhill/lavacharts) which in turn uses Google's powerful Charts package (https://developers.google.com/chart/interactive/docs). The client pulls values from a Numerolog package using a token, then renders the data sets as a nice chart. All graph types and options of Google Charts are supported.

Being Javascript based, this charting package is obviously limited to browser-based use.

Installation

Use composer:

Usage

Then either integrate from anywhere by calling methods manually with an array as input:

Alternatively, do the same but configure the ChartQuery manually:

The output will include both the <div> that will contain the graph as well as every dependency required by Google Charts to render the graph. Graph data is converted to a JavaScript array that is embedded in the HTML.

Integration

To render the graphs anywhere other than on the host that generates the chart - which you may for example want to do if you are using the public Numerolog end-point - simply load the response body of the HTTP request and output it in your own HTML document. The example below is the extremely basic implementation of that principle:

Since the default output already contains both <script> tag and <div> there's nothing more you need to do before the chart is displayed. Change the URL parameters to affect how the chart itself is rendered - see below!

Public implementation

A publicly available graph rendering is available from:

It accepts plain old GET parameters:

And native parameters for basic chart configuration:

And the special chartAttributes (which correspond to Google Chart configurations):

And they all must be specified together. Required arguments are:

Plus the following references for other arguments:

Note that the Google Chart options you can use will always depend on the type of chart you are rendering.


All versions of numerolog-lavacharts with dependencies

PHP Build Version
Package Version
Requires namelesscoder/numerolog Version ^1.2
khill/lavacharts Version ^2.5
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 namelesscoder/numerolog-lavacharts contains the following files

Loading the files please wait ....