PHPackages                             ropi/cardinality-estimation - 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. ropi/cardinality-estimation

ActiveLibrary

ropi/cardinality-estimation
===========================

Cardinality estimation

v0.2.0(4y ago)18511MITPHPPHP &gt;=8.1.0

Since Aug 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ro-pi/cardinality-estimation)[ Packagist](https://packagist.org/packages/ropi/cardinality-estimation)[ Docs](https://www.robertpiplica.de)[ RSS](/packages/ropi-cardinality-estimation/feed)WikiDiscussions master Synced 1mo ago

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

Cardinality estimation library for PHP
======================================

[](#cardinality-estimation-library-for-php)

This library is a PHP based implementation for estimating [cardinalities](https://en.wikipedia.org/wiki/Cardinality).

Following cardinality estimators are implemented:

- [HyperLogLog](https://en.wikipedia.org/wiki/HyperLogLog) (approx. cardinality estimation but very low memory usage)
- Exact (exact cardinality estimation but very high memory usage)

### Requirements

[](#requirements)

- PHP ^8.1

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

[](#installation)

The library can be installed from a command line interface by using [composer](https://getcomposer.org/).

```
composer require ropi/cardinality-estimation

```

Basic usage
-----------

[](#basic-usage)

```
