PHPackages                             mindum/laravel - 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. mindum/laravel

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

mindum/laravel
==============

The agent layer for Laravel — auto-generated MCP tools from your codebase.

v0.2.0(2d ago)00MITPHPPHP ^8.2CI failing

Since May 22Pushed 2d agoCompare

[ Source](https://github.com/mindumai/LaravelSDK)[ Packagist](https://packagist.org/packages/mindum/laravel)[ Docs](https://mindum.dev)[ RSS](/packages/mindum-laravel/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (10)Versions (3)Used By (0)

Mindum for Laravel
==================

[](#mindum-for-laravel)

**The agent layer for Laravel — auto-generated MCP tools from your codebase.**

Install Mindum into any Laravel app to give your end users a conversational interface to your app's business logic. Mindum scans your models, services, controllers, jobs, and repositories, and uses AI to automatically generate [MCP](https://modelcontextprotocol.io) tool definitions — no manual tool writing required.

> Status: **early access**. Active development — see [`CHANGELOG.md`](CHANGELOG.md) for what's shipped.

Requirements
------------

[](#requirements)

- PHP **8.2+**
- Laravel **12+**
- A Mindum account ([mindum.dev](https://mindum.dev)) for the API key
- An Anthropic API key (only required during local `mindum:chat` testing; the hosted orchestrator handles it in production)

Install
-------

[](#install)

```
composer require mindum/laravel
php artisan mindum:install
```

The install command scans your codebase, sends a structural manifest (metadata only — never raw source code) to the Mindum API, receives back AI-generated MCP tool definitions, and registers them with [`laravel/mcp`](https://laravel.com/docs/mcp).

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=mindum-config
```

Then set in your `.env`:

```
MINDUM_API_KEY=your-mindum-api-key
ANTHROPIC_API_KEY=your-anthropic-key  # only needed for local mindum:chat testing
```

See `config/mindum.php` for all available options (scan paths, exclusions, tool output directory, MCP endpoint path).

Commands
--------

[](#commands)

CommandPurpose`mindum:install`Full first-time setup: scan, analyze, register tools`mindum:rescan`Force re-analysis of the entire codebase`mindum:status`Show tool count, sync status, connection health`mindum:chat`Interactive terminal chat for testing tools locallyWhat Mindum scans
-----------------

[](#what-mindum-scans)

The SDK extracts structural metadata (class names, method signatures, type hints, docblocks, validation rules) from:

- **Eloquent models** (fillable, casts, relationships, soft deletes, searchable traits)
- **Action classes** (`extends BaseService` pattern or similar)
- **Controllers** in `app/Http/Controllers/` (with form request resolution + inline `validate()` parsing)
- **Jobs** in `app/Jobs/` (constructor-based input, sync dispatch only)
- **Repositories** in `**/Repositories/` (Prettus L5-style inherited methods + concrete custom methods)

Modular apps (like Bagisto with `packages/Webkul/*/src/`) are supported via `scan_paths` config.

Security
--------

[](#security)

Mindum sends only **structural metadata** to its API — class names, method signatures, type hints, docblocks, and validation rules. Your actual source code **never leaves your server**. Tool execution always runs locally in your Laravel app.

See the [security notes in `SECURITY.md`](SECURITY.md) for details (coming soon).

License
-------

[](#license)

MIT. See [`LICENSE`](LICENSE).

---

Built with love for the Laravel community.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance99

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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 ~16 days

Total

2

Last Release

2d ago

### Community

Maintainers

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

---

Top Contributors

[![mindumai](https://avatars.githubusercontent.com/u/277364814?v=4)](https://github.com/mindumai "mindumai (29 commits)")

---

Tags

laravelmcpaiAgentcopilotclaudechatbotanthropicModel Context Protocol

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mindum-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.4k](/packages/larastan-larastan)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76318.2M110](/packages/laravel-mcp)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

954.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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