Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

A Laravel Nova Baremetrics metric for the Laravel Nova dashboard.

License

Notifications You must be signed in to change notification settings

jackcruden/nova-baremetrics-metrics

Repository files navigation

Nova Baremetrics Metrics

Display Baremetrics metrics on your Nova dashboard.

Screenshot

Installation

Install via Composer:

composer require jackcruden/nova-baremetrics-metrics

Register the card in app/Providers/NovaServiceProvider and pass the metric you'd like to show (MRR by default):

public function tools()
{
    return [
        new \Jackcruden\NovaBaremetricsMetrics\BaremetricsMetric('mrr'),
        new \Jackcruden\NovaBaremetricsMetrics\BaremetricsMetric('active_subscriptions'),
    ];
}

Add your Baremetrics API key in your services.php config file:

'baremetrics' => [
    'api_key' => env('BAREMETRICS_API_KEY'),
],

Supports all current Baremetrics metrics:

  • active_customers
  • active_subscriptions
  • add_on_mrr
  • arpu
  • arr
  • cancellations
  • coupons
  • downgrades
  • failed_charges
  • fees
  • ltv
  • mrr
  • net_revenue
  • new_customers
  • new_subscriptions
  • other_revenue
  • reactivations
  • refunds
  • revenue_churn
  • trial_conversion
  • upgrades
  • user_churn

About

A Laravel Nova Baremetrics metric for the Laravel Nova dashboard.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published