PHPackages                             zerofyi/laracontext - 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. zerofyi/laracontext

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

zerofyi/laracontext
===================

Generate high-density architectural context maps of Laravel applications for AI models.

v1.0.0(1mo ago)052MITPHPPHP ^8.2

Since Jun 20Pushed 1mo agoCompare

[ Source](https://github.com/zerofyi/laracontext)[ Packagist](https://packagist.org/packages/zerofyi/laracontext)[ RSS](/packages/zerofyi-laracontext/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

LaraContext 🚀
=============

[](#laracontext-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2a9d7d9602786e7015e8595631521426defec92c3921f2d5066f2e0db3be2829/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a65726f6679692f6c617261636f6e746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zerofyi/laracontext)[![Total Downloads](https://camo.githubusercontent.com/afb0cff9022890dc60c7ebd13d9129c2ca36f76af1e614f9e65839f33609e0fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a65726f6679692f6c617261636f6e746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zerofyi/laracontext)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![PHP Version Support](https://camo.githubusercontent.com/2b772b0e9daa8f19f7ae8cbbd897a75f9daecc22ee83ef8865e569c50ac3565a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c75652e7376673f7374796c653d666c61742d737175617265)](https://php.net)

`LaraContext` is a high-density architectural blueprint compiler engineered specifically for Laravel applications.

Instead of dumping raw repositories into LLM windows and blowing past token limits, LaraContext parses live framework structures in memory via Reflection engines to provide AI assistants with maximum architectural insight for minimum token consumption.

---

🔥 Key Features
--------------

[](#-key-features)

- **Dynamic Schema Inspection:** Sniffs database drivers natively to list tables, field sets, and casting data types instantly without crashing on unmigrated structures.
- **Deep Reflection Extraction:** Traverses Eloquent models dynamically to map public relationship graphs (`hasMany`, `belongsTo`, etc.).
- **Automated Validation Injections:** Maps controller action definitions to resolve injected `FormRequest` validation rules, creating field-level request documentation for the AI.
- **Fail-Safe Containment:** Gracefully falls back past unresolvable bindings or custom parameters, continuing the blueprint without killing the run.

---

💾 Installation
--------------

[](#-installation)

```
composer require zerofyi/laracontext
```

The package relies on Laravel's standard auto-discovery protocols out of the box.

---

🚀 Usage
-------

[](#-usage)

Compile the application's context blueprint:

```
php artisan context:generate
```

This generates a high-density, structured Markdown profile named `ai-context.md` right in the root working directory of your host application.

FlagDescription`--output=custom.md`Overrides the default file name and target destination path.`--no-routes`Bypasses endpoint mapping loops to ensure maximum token space containment.---

📄 License
---------

[](#-license)

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

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

46d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/159120489?v=4)[Nahid Hassan](/maintainers/zerofyi)[@zerofyi](https://github.com/zerofyi)

---

Top Contributors

[![zerofyi](https://avatars.githubusercontent.com/u/159120489?v=4)](https://github.com/zerofyi "zerofyi (2 commits)")

---

Tags

laravelaiContextllmprompt

### Embed Badge

![Health badge](/badges/zerofyi-laracontext/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M276](/packages/laravel-ai)[laravel/sail

Docker files for running a basic Laravel application.

1.9k212.4M1.4k](/packages/laravel-sail)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k26.0M739](/packages/laravel-boost)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

78727.1M206](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

11747.5k1](/packages/neuron-core-neuron-laravel)

PHPackages © 2026

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