Download the PHP package bencarr/craft-fathom-analytics without Composer

On this page you can find all versions of the php package bencarr/craft-fathom-analytics. 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 craft-fathom-analytics

Fathom Analytics

A Craft CMS plugin to surface your Fathom Analytics data in the Craft control panel.

Features

This plugin is intended to help content authors get a nice overview of site analytics, and surface some contextual information they can use to tailor their content changes. It’s a companion, not a replacement for your Fathom Analytics dashboard.

Dashboard Widgets

Fantastic dashboard widgets with customizable date ranges to keep an eye on what’s most important to you:

Entry Sidebar Widget

A mini widget with entry-specific analytics right in the entry edit form with tabs to cover all the basics:

Requirements

This plugin requires Craft CMS 4.5.0 or later, and PHP 8.0.2 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Fathom Analytics”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

Configuration

Once the plugin is installed, you’ll need to configure your API Key and Site ID either using the plugin settings page or a configuration file. You can generate an API key from your Fathom Analytics account, and find your site ID by clicking the site from your sites list.

From the Plugin Settings Page

On an environment with admin changes enabled, open Settings then press “Fathom Analytics” under the “Plugins” section. Your API key is sensitive data, so you’ll probably want to use an environment variable that you keep out of version control.

From a Configuration File

Create a file called fathom.php in your config/ directory.

Extending

Modifying Available Date Ranges

The plugin comes with a set of default ranges covering a scale of time from 1 day to 1 year. You can modify these ranges using the EVENT_DEFINE_WIDGET_RANGES event.

Default Ranges

Range Key
Last 24 Hours today
Last 7 Days last_7_days
Last 14 Days last_14_days
Last 30 Days last_30_days
Last 60 Days last_60_days
Last 90 Days last_90_days
Last 180 Days last_180_days
Last 365 Days last_365_days

Removing a Default Range

Remove a default range by unsetting its key in the ranges array.

Adding a Custom Range

The ranges event expects a keyed array of WidgetDateRange objects. To add a new range, add a new key to the ranges array on the event and construct a WidgetDateRange instance with your desired configuration:


All versions of craft-fathom-analytics with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.2
craftcms/cms Version ^4.5.0
putyourlightson/craft-sprig-core Version ^2.6
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 bencarr/craft-fathom-analytics contains the following files

Loading the files please wait ....