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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vinkius-labs/markovable

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

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

Markovable

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

Since Oct 26Pushed 8mo 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 today

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

33

—

LowBetter than 72% of packages

Maintenance61

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

250d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26571?v=4)[Renato Marinho](/maintainers/renatomarinho)[@renatomarinho](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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