infopixel / laravel-project-snapshot
Exports a Laravel project snapshot (tree + code bundle) into a single markdown file.
Package info
github.com/BeastFromPretoriaEast/LaravelProjectSnapshot
pkg:composer/infopixel/laravel-project-snapshot
Requires
- php: ^8.2|^8.3|^8.4
- illuminate/support: ^11.0|^12.0
README
πΈ A workaround for full project .zip file upload limitations by AI-powered language models (LLM).
It generates a single, lightweight snapshot of your project β a fraction of the size of the full codebase, that can be uploaded to your LLM of choice, allowing the AI to understand your architecture and code and collaborate with you effectively.
Export a Laravel project snapshot (file tree + source code) into a single Markdown file**, designed specifically for AI analysis, code review, auditing, and architecture discussions.
It was specifically designed to solve the common problem of uploading large full-project .zip files directly into AI-powered language models.
Instead of uploading entire projects, this tool produces a **single, structured Markdown file that preserves project context, hierarchy, and source code, making it ideal for ChatGPT, LLMs, and automated review pipelines.
This package generates a safe, readable, deterministic snapshot of your project without binaries, without vendor noise, and with automatic secret redaction.
π¦ Installation (dev only)
composer require --dev infopixel/laravel-project-snapshot
βΆοΈ Command line
php artisan snapshot
β¨ Features
- π§ Optimized for ChatGPT / LLM ingestion
- β
Single-file snapshot (
project.snapshot.md) - π³ Clean, readable file tree with depth
- π Secret scrubbing (JWTs, API keys, Bearer tokens, private keys)
- π« Will not upload files containing sensitive data like
.sqlite,.sql,.db, etc. (unless explicitly permitted via yourself in the configuration) - π« Automatically excludes sensitive files (
.env,., OAuth keys, etc.) - π¦ Whitelist-based file inclusion (no binaries)
- π§ͺ Dev-only safe (wonβt run in production)
- β³ Console progress bar
- π§Ύ Rich snapshot metadata block
- βοΈ Fully configurable
π¦ Screenshots
Command line project.snapshot.md (Metadata) project.snapshot.md (File Display) File Size (project.snapshot.md)π¨ Important Safety Notice
This package is intended for development environments only.
- Installed via
require-dev - Refuses to run in
production - Explicitly excludes sensitive files
- Redacts secrets even if accidentally committed



