Git Product home page Git Product logo

fathomstatsdisplay's Introduction

Fathom Stats Display

A Laravel Nova Card to show Fathom Analytics stats.

Status License PHP Latest Version on Packagist Downloads


Table of Contents

Getting Started

You'll need a Fathom account - if you don't have one, feel free to use our referal code: https://usefathom.com/ref/BYODNP - you'll get $10 off your first invoice and we get a little something too

Prerequisites

This package requires the following :

  • PHP 8.0 or higher
  • Laravel Nova 4.0 or higher
  • Fathom account with API access

Installing

To get started, you will need to install the following dependencies :

composer require charlielangridge/fathom-stats-display

Next add your Fathom API Token and Site ID to your .env file

FATHOM_SITE_ID=
FATHOM_TOKEN=

That's it, you're ready to go!

Usage

Add the card to any of your dashboards

<?php

namespace App\Nova\Dashboards;

use CharlieLangridge\FathomStatsDisplay\FathomStatsDisplay;
use Laravel\Nova\Dashboards\Main as Dashboard;

class Main extends Dashboard
{
    /**
     * Get the cards for the dashboard.
     *
     * @return array
     */
    public function cards()
    {
        return [
            new FathomStatsDisplay,
        ];
    }
}

Stats are cached for an hour, but can be refreshed with the on-card link. The time period for the stats is selectable with the drop-down.

Authors

License

The MIT License (MIT). Please see License File for more information.

fathomstatsdisplay's People

Contributors

charlielangridge avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

madmikeyb

fathomstatsdisplay's Issues

404 on resource calls

I set up the .env and followed instructions and it tries to load but is getting 404 at the nova endpoints.

Assuming it's something minor. Thanks in advance for any suggestions.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.