PHPackages                             defixit/anonlytics-lib-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. defixit/anonlytics-lib-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

defixit/anonlytics-lib-php
==========================

European anonymized website analytics (GDPR)

2.0.0(8mo ago)0401MITPHPPHP &gt;=8.3

Since Feb 21Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/defixit/anonlytics-lib-php)[ Packagist](https://packagist.org/packages/defixit/anonlytics-lib-php)[ RSS](/packages/defixit-anonlytics-lib-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (1)

[![License](https://camo.githubusercontent.com/ac049ef4e7a0b7196b09add6ac2d4f180e544c0ac779c2b2ac2fd2723a209579/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ac049ef4e7a0b7196b09add6ac2d4f180e544c0ac779c2b2ac2fd2723a209579/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75653f7374796c653d666c61742d737175617265)[![PHP Version](https://camo.githubusercontent.com/a0389b69981da2bb549e870d8bae26bb48bb6cb058ef5ac67beaded1cd7ea983/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e332d3737376262343f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a0389b69981da2bb549e870d8bae26bb48bb6cb058ef5ac67beaded1cd7ea983/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e332d3737376262343f7374796c653d666c61742d737175617265)

Anonlytics Lib PHP
==================

[](#anonlytics-lib-php)

In a world with all GDPR rules, an IP address is now already labeled as personal information and can therefore not just be passed on by your website/application.

That's why we introduce Anonlytics, the server side analytics tool that only works with anonymized data for website analytics.

Entirely in accordance with all the rules of the GDPR. Our servers are all located in Europe and no IP addresses are used anywhere.

This library is part of , you need a (free) account to use this bundle for your website/application.

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- cURL extension
- JSON extension

Installation
------------

[](#installation)

Use composer to add the library as dependency for your project:

```
composer require defixit/anonlytics-lib-php
```

Usage
-----

[](#usage)

### Setup

[](#setup)

At first, you need to create an account on [Anonlytics.eu](https://anonlytics.eu) to get your `client_token` and `site_token` to connect to our services.

After you created an account on our website you can create a file with the name `anonlytics.yaml` in the `config/packages/` folder, with the following content:

#### Send data to our service

[](#send-data-to-our-service)

```
