PHPackages                             centrex/btyd - 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. centrex/btyd

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

centrex/btyd
============

Laravel package for BTYD (BG/NBD + Gamma-Gamma) CLV prediction

v0.1.0(8mo ago)00[4 PRs](https://github.com/centrex/laravel-btyd/pulls)MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Sep 6Pushed 1mo agoCompare

[ Source](https://github.com/centrex/laravel-btyd)[ Packagist](https://packagist.org/packages/centrex/btyd)[ Docs](https://github.com/centrex/btyd)[ RSS](/packages/centrex-btyd/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (15)Versions (6)Used By (0)

Laravel package for BTYD (BG/NBD + Gamma-Gamma) CLV prediction
==============================================================

[](#laravel-package-for-btyd-bgnbd--gamma-gamma-clv-prediction)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3968b32b9627bf7251df1b8900fee6057c07fd349efc7fc03b35837cbf51b74b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656e747265782f627479642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/centrex/btyd)[![GitHub Tests Action Status](https://camo.githubusercontent.com/951944799baf72f73566ce08c2e9a1df101d33b212c9fac552abc89f613cb51f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656e747265782f627479642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/centrex/btyd/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5dc3f4b098f34e97724d18b96c8eb8b185217369d78f649fa523d3021a51caed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656e747265782f627479642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/centrex/btyd/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/a6a1163f6f888fec7f5aabd3b528cfe58f08ad4e534201ed7aef0aa31aef43a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656e747265782f627479643f7374796c653d666c61742d737175617265)](https://packagist.org/packages/centrex/btyd)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [Changelog](#changelog)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install the package via composer:

```
composer require centrex/btyd
```

You can publish the config file with:

```
php artisan vendor:publish --tag="btyd-config"
```

This is the contents of the published config file:

```
return [
];
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="btyd-migrations"
php artisan migrate
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="btyd-views"
```

Usage
-----

[](#usage)

```
$btyd = new Centrex\Btyd();
echo $btyd->echoPhrase('Hello, Centrex!');
```

Testing
-------

[](#testing)

🧹 Keep a modern codebase with **Pint**:

```
composer lint
```

✅ Run refactors using **Rector**

```
composer refacto
```

⚗️ Run static analysis using **PHPStan**:

```
composer test:types
```

✅ Run unit tests using **PEST**

```
composer test:unit
```

🚀 Run the entire test suite:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [rochi88](https://github.com/centrex)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance77

Regular maintenance activity

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.3% 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

254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b62fd49922fd1bf7d55b94cc82ebc9f359af7f343b246a7e3a2642779c0b4e7?d=identicon)[rochi88](/maintainers/rochi88)

---

Top Contributors

[![rochi88](https://avatars.githubusercontent.com/u/29769944?v=4)](https://github.com/rochi88 "rochi88 (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelcentrexbtyd

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/centrex-btyd/health.svg)

```
[![Health](https://phpackages.com/badges/centrex-btyd/health.svg)](https://phpackages.com/packages/centrex-btyd)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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