An open API service indexing awesome lists of open source software.

https://github.com/kindmetrics/kindmetrics-php

Kindmetrics PHP library
https://github.com/kindmetrics/kindmetrics-php

Last synced: about 1 month ago
JSON representation

Kindmetrics PHP library

Awesome Lists containing this project

README

        

# Kindmetrics PHP Library

This is the PHP library for [Kindmetrics](https://kindmetrics.io).

It is a privacy focused website analytics to help you find referrers and measure good content quickly. A more excellent way to dig into your visitors without the visitors giving their data to big enterprises.
Kindmetrics have an API which this use, read more on https://kindmetrics.io

You can get your domains, create new and get data on specific domains, like current visitors, sources, mediums, pages, and more.

## Getting started
Using composer, you run this command:
```
composer require kindmetrics/kindmetrics
```

if you want to do it manually you would need to download, and run composer to add the required libraries this library is dependent on.

## Example

Here is an example when you have autoload the required files:
```
$token = "IlkoAAfas75468IBQ0tE8T1sdFhhgsdf7IidsgASd-c_m4";

$kind = new \Kindmetrics\Kindmetrics($token);

$domains = $kind->getDomains();
print_r($domains);

$domain = $kind->getDomain(2);
print_r($domain);
$sources = $domain->getSources();
print_r($sources);
```