Download the PHP package nova-bi/nova-dashboard-manager without Composer

On this page you can find all versions of the php package nova-bi/nova-dashboard-manager. 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 nova-dashboard-manager

Nova Dashboard Manager

The Dashboard-Manager for Nova-Dashboard allows you to configure dashboards within your Nova-App

Laravel Nova Dashboard In Action

Installation:

You can install the package via composer:

composer require nova-bi/nova-dashboard-manager

If you want to specify your own table names you need to edit the configurations before running the migrations:

nova-dashboard.table_name
nova-dashboard-manager.tables

Recommended: Publish Configuration File for adjusting model and table names of Nova-Dashboard

php artisan vendor:publish --provider="DigitalCreative\NovaDashboard\ToolServiceProvider" --tag="config"

Recommended: Publish Configuration File for all configurations of Nova-Dashboard-Manager

php artisan vendor:publish --provider="NovaBi\NovaDashboardManager\DashboardManagerServiceProvider" --tag="config"

Optional: Publish Migrations

php artisan vendor:publish --provider="NovaBi\NovaDashboardManager\DashboardManagerServiceProvider" --tag="migrations"    

Run Migrations

php artisan migrate

Usage

Open NovaServiceProvider.php to add classes:

Enhance the tools() methods like this:

Start with the Playground

The package comes with working playground examples so you can test the functionality and use the code as an example for your own implementations.

By default the Playground-Setup is configured, which will give you following basic metrics from you Nova installation:

Following visualisations are currently available

And these Filters are available:

Go to the Dashboard-Manager Tools menu and setup some demo widget, filters and dashboards.

After configuration of your dashboard you need to reload Nova to show the new Menu-Item to access the dashboard

Develop and Register your own Metrics, Filters and Visuals

Seperation of metric calculation and visualisation

The Metric classes are the container for all metric calculations. The calculations are adoptable to the supported visualisations, so e.g. within a Users-metric you can calculate e.g. the total number of users for a Value-Visualisation or provide Trend-Data for a Trend-Visualisation.

configurable and re-usable

With custom configurations you can make your Boards, Metrics, Filters and Visualisations re-usable - check out nova-bi/nova-dashboard-manager/src/Models/Datametricables/users.php how to use the same metric to show the number of total users and users with verified email.

Code Structure

Following the recommended structure to build your own Metrics, Filters and Visuals. Please check the sources of this package in nova-bi/nova-dashboard-manager/src for details

/myDashboard
    /Calculations               All calculations - could be done in metrics as well
    /Models
        /Datafilterables        Models representing filters
        /Datametricables        Models representing metrics
        /Datavisualables        Models representing visuals
            /Visuals            Implementation of visuals, 
                                    must extend `DigitalCreative\ValueWidget\Widgets` 
                                    must use Trait \NovaBi\NovaDashboardManager\Models\Datavisualables\Visuals\Visuable
    /Nova
        /Datafilterables        Resources for filter models
        /Datametricables        Resources for metric models
        /Datavisualables        Resources for visual models

Register your sources in configurations:

nova-dashboard-manager.datafilterables
nova-dashboard-manager.datametricables
nova-dashboard-manager.datavisualables

Now you can create new Filters and Metrics in your Dashboard configuration and attach them to dashboards.

Debugging of Calculations

using Trait \NovaBi\NovaDashboardManager\Calculations\Calculatableyou can view the raw SQL using thedebugQuery()` method

dd($calculation->debugQuery($calculationCurrentValue->query()));

Direct Access to Dashboards

The very nice Collapsible Resource Manager package allows you to customize the menu structure.

Configure nova-dashboard-manager.showToolMenu to false to hide the tool menue

With the following code the Dashboards and the configurations are directly accessible through the Menu (see know issues below - do you know how to solve this?)

Known issue

Contributing

If you would like to contribute please fork the project and submit a PR.

Check out https://github.com/Nova-BI/nova-databoards/issues for open development tasks and issues.

Credits notice

This package is highly depending on following selection of packages from the huge range of excellent packages for laravel and nova.

License

This software is released under The MIT License (MIT).


All versions of nova-dashboard-manager with dependencies

PHP Build Version
Package Version
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 nova-bi/nova-dashboard-manager contains the following files

Loading the files please wait ....