PHPackages                             vinkius-labs/markovable - 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. vinkius-labs/markovable

ActiveLibrary

vinkius-labs/markovable
=======================

Markovable

v1.2.0(6mo ago)10MITPHPPHP ^8.2 || ^8.3

Since Oct 26Pushed 6mo agoCompare

[ Source](https://github.com/vinkius-labs/markovable)[ Packagist](https://packagist.org/packages/vinkius-labs/markovable)[ RSS](/packages/vinkius-labs-markovable/feed)WikiDiscussions master Synced 1mo ago

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

Markovable
==========

[](#markovable)

Markovable is a Laravel-native engine for building adaptive Markov chains that learn from your product’s voice and user journeys. It turns familiar Eloquent patterns into powerful prediction, generation, anomaly detection, and analysis flows so you can ship intelligent experiences without leaving PHP.

> "Give your data a memory and it will return with stories you never thought to ask." – The Markovable Manifesto ✨

Why Markovable?
---------------

[](#why-markovable)

- **Human DX** – API-first design, fluent builders, and sensible defaults keep developers in flow.
- **Production Ready** – Cache, database, and file storage drivers out of the box, plus queue-friendly jobs.
- **SaaS Native** – Multi-tenant caching, predictive scoring, and lifecycle workflows keep subscription products informed in real time.
- **Composable** – Extend analyzers, generators, and builders to fit any domain-specific language or dataset.
- **Observable** – Built-in events, anomaly alerts, and exports make analytics, monitoring, and audits effortless.

Table of Contents
-----------------

[](#table-of-contents)

1. [Getting Started](docs/getting-started.md)
2. [Configuration Guide](docs/configuration.md)
3. [Training Guide](docs/training-guide.md)
4. [Usage Recipes](docs/usage-recipes.md)
5. [Use Cases](docs/use-cases.md)
6. [PageRank Analyzer Guide](docs/pagerank.md)
7. [PageRank Graph Builders](docs/pagerank-graph-builders.md)
8. [Predictive Intelligence](docs/predictive-intelligence.md)
9. [Architecture](docs/architecture.md)
10. [Artisan Command Reference](docs/command-reference.md)
11. [Artisan Commands Use Cases](docs/use-cases/artisan-commands.md)
12. [Technical Reference](docs/technical-reference.md)
13. [Contributing](docs/contributing.md)

Quick Peek
----------

[](#quick-peek)

```
use VinkiusLabs\Markovable\Facades\Markovable;

$baseline = 'analytics::predictive-saas';

Markovable::chain('analytics')
    ->cache($baseline)
    ->train($historicalSessions);

$insights = Markovable::predictive($baseline)
    ->dataset($latestTenantSnapshots)
    ->usingOptions([
        'churn' => ['include_recommendations' => true],
        'ltv' => ['segments' => ['self_serve', 'enterprise'], 'include_historical' => true],
    ]);

$churnAlerts = $insights->churnScore()->get();
$ltvReport = $insights->ltv()->get();
```

```
use VinkiusLabs\Markovable\Facades\Markovable;
use App\Markovable\SaaSAuthorityGraph;
use VinkiusLabs\Markovable\Models\PageRankSnapshot;

$authority = Markovable::pageRank()
    ->useGraphBuilder(new SaaSAuthorityGraph())
    ->dampingFactor(0.9)
    ->groupBy('prefix')
    ->includeMetadata()
    ->result();

PageRankSnapshot::capture('saas-authority:q2', $authority);
```

What’s Inside
-------------

[](#whats-inside)

- Feature-rich `MarkovableChain` for training, caching, generating, and analyzing sequences.
- Generators tuned for natural language and navigation flows.
- Analyzer strategies to surface probabilities, detect anomalies, calculate PageRank authority, and predict next-best actions.
- Detectors and monitoring pipelines to surface unseen sequences, emerging patterns, seasonality shifts, and behaviour drift.
- Traits and observers that keep Eloquent models self-training.
- Artisan commands to orchestrate training, generation, and analysis from the CLI.

Ready to Explore?
-----------------

[](#ready-to-explore)

Head over to the docs linked above to dive into setup, recipes, and architecture deep dives. Pair Markovable with your favorite Laravel tools, automate the mundane, and let curiosity lead the roadmap.

If you build something brilliant, we want to hear about it—open an issue or PR, or share your story. Happy modelling! 🚀

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

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

Every ~0 days

Total

4

Last Release

204d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c115f2233ad835e7b1374faa198dd5c0188174cc861e1efa5f25a9e49f5f604c?d=identicon)[renatomarinho](/maintainers/renatomarinho)

---

Top Contributors

[![renatomarinho](https://avatars.githubusercontent.com/u/26571?v=4)](https://github.com/renatomarinho "renatomarinho (15 commits)")

---

Tags

laravellaravel-eloquentlaravel-packagelaravel-predictionmarkov-chainmarkov-decision-processesphppredictionlaravel

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/vinkius-labs-markovable/health.svg)

```
[![Health](https://phpackages.com/badges/vinkius-labs-markovable/health.svg)](https://phpackages.com/packages/vinkius-labs-markovable)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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