PHPackages                             ivanciric/gtp-estimator - 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. ivanciric/gtp-estimator

ActiveLibrary

ivanciric/gtp-estimator
=======================

German Tank Problem Estimator

0.0.2(9y ago)017MITPHP

Since Oct 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ivanciric/gtp-estimator)[ Packagist](https://packagist.org/packages/ivanciric/gtp-estimator)[ Docs](https://github.com/ivanciric/gtp-estimator)[ RSS](/packages/ivanciric-gtp-estimator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

GtpEstimator
============

[](#gtpestimator)

German Tank Problem estimator in PHP

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

[](#installation)

In composer.json file add the following in the require array:

```
"ivanciric/gtp-estimator": "0.0.*"
```

Usage
-----

[](#usage)

See example.php file.

Suppose k = 4 tanks with serial numbers 19, 40, 42 and 60 are captured. The maximal observed serial number, m = 60. The unknown total number of tanks is called N.

The formula for estimating the total number of tanks suggested by the frequentist approach outlined below is

```
N ≈ m + m/k − 1 = 74

```

Using GtpEstimator:

```
$estimate = Ivanciric\GtpEstimator\GtpEstimator::estimate(4, 60);

```

Wikipedia: [https://en.wikipedia.org/wiki/German\_tank\_problem](https://en.wikipedia.org/wiki/German_tank_problem)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3499d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3796581?v=4)[Yoshi Tech](/maintainers/ivanciric)[@ivanciric](https://github.com/ivanciric)

---

Top Contributors

[![ivanciric](https://avatars.githubusercontent.com/u/3796581?v=4)](https://github.com/ivanciric "ivanciric (8 commits)")

---

Tags

statisticsestimationestimateGermanTankProblem

### Embed Badge

![Health badge](/badges/ivanciric-gtp-estimator/health.svg)

```
[![Health](https://phpackages.com/badges/ivanciric-gtp-estimator/health.svg)](https://phpackages.com/packages/ivanciric-gtp-estimator)
```

###  Alternatives

[markrogoyski/math-php

Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

2.4k7.1M40](/packages/markrogoyski-math-php)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[szymach/c-pchart

Port of "pChart" library into PHP 8+

1512.3M7](/packages/szymach-c-pchart)[hi-folks/statistics

PHP package that provides functions for calculating mathematical statistics of numeric data.

398103.5k](/packages/hi-folks-statistics)[bilfeldt/laravel-route-statistics

Log statistics about route usage per user/team

240132.9k2](/packages/bilfeldt-laravel-route-statistics)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
