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.

00PHP

Since Jun 20Pushed todayCompare

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

READMEChangelogDependenciesVersions (1)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

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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.

### 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)")

### 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

[elhebert/laravel-sri

Subresource Integrity hash generator for laravel

39241.9k](/packages/elhebert-laravel-sri)[mtdowling/burgomaster

Packages up PHP packages into zips and phars

2780.9k12](/packages/mtdowling-burgomaster)[francescomalatesta/laravel-circuit-breaker

A circuit breaker pattern implementation for the Laravel framework

2919.2k2](/packages/francescomalatesta-laravel-circuit-breaker)

PHPackages © 2026

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