Skip to content
The IPcount Plugin is for Grav CMS. It counts the visitors on your Website
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes
CHANGELOG.md
LICENSE
README.md
blueprints.yaml
ipcount.php
ipcount.yaml

README.md

IPcount Plugin

The IPcount Plugin is for Grav CMS. It counts the visitors on your Website. It is heavyly inspired by Grav Plugin Iplocate

Installation

Installing the IPcount plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install ipcount

This will install the IPcount plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/ipcount.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to ipcount. You can find these files on GitHub

You should now have all the plugin files under

/your/site/grav/user/plugins/ipcount

NOTE: This plugin is a modular component for Grav which requires Grav and the Error and Problems to operate.

Configuration

Here's the default configuration. To override, first copy ipcount.yaml from the plugins/ipcount folder to your config/plugins folder.

enabled: true

  - `enabled` is used to enable/disable the plugin. There is no way to selectively enable this plugin. Either it is on or off.

## Usage

All you have to do is make sure the plugin is `enabled`. 

## Twig Variables

Count data is stored in user://data/counter/counter.txt .
You can use this anywhere on your Website to display via inserting {{ counter() }} in the desired twig File.
You can’t perform that action at this time.