coffesoft/laravel-beacon
Composer 安装命令:
composer require coffesoft/laravel-beacon
包简介
Laravel Beacon v2 — AI Project Intelligence Engine. Scan, understand, and export clean context for AI-assisted development.
README 文档
README
Laravel Project Context Generator
Scan any Laravel project and export clean, structured context for AI-assisted development.
Quick Start
composer require coffesoft/laravel-beacon
The service provider auto-discovers via Laravel package discovery.
Compatibility
| Laravel | PHP | Support Level |
|---|---|---|
| 11.x | 8.1–8.4 | ✅ Official |
| 10.x | 8.1–8.3 | ✅ Official |
| 9.x | 8.1–8.2 | ✅ Official |
| 8.x | 8.1 | ⚠️ Best-effort |
Commands
# Scan the project and display a summary php artisan beacon:scan # Export context as Markdown php artisan beacon:export --format=md # Export context as structured JSON php artisan beacon:export --format=json # Export to a custom location php artisan beacon:export --format=md --output=custom/path/context.md
Output
context.md
Six-section markdown document with factual project data:
- Project Overview — Framework, PHP version, counts
- Architecture — Detected modules
- Models — Namespace, relationships, fillable fields
- Controllers — Grouped by subdirectory with method lists
- Routes — Grouped by prefix
- Migrations — Table names and totals
context.json
Strict structured JSON — only factual scanned data.
What It Scans
| Scanner | Source | Data |
|---|---|---|
| ModelScanner | app/Models/ |
Class names, Eloquent relationships, fillable fields |
| ControllerScanner | app/Http/Controllers/ |
Class names, public methods, subdirectory grouping |
| RouteScanner | All registered routes | URI, methods, names, actions, middleware |
| MigrationScanner | database/migrations/ |
Timestamps, table names, column types |
Requirements
- PHP 8.1+
- Laravel 9.x, 10.x, or 11.x (8.x best-effort)
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-03