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
- Host: GitHub
- URL: https://github.com/kindmetrics/kindmetrics-php
- Owner: kindmetrics
- Created: 2020-10-17T07:37:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T09:36:36.000Z (over 4 years ago)
- Last Synced: 2025-02-14T21:54:52.308Z (3 months ago)
- Language: PHP
- Size: 496 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.ioYou 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);
```