Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Paper Laravel Package

jacobjoergensen/laravel-paper

Laravel Paper adds flat-file drivers to Eloquent for Laravel 12+ (PHP 8.4+). Point a model to a content directory and query Markdown or JSON files with familiar Eloquent APIs—no database, schema, or custom connection. Uses attributes + a trait.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Content Management Without a Database: Enables lightweight, database-free content storage (e.g., blogs, documentation, or static sites) while retaining Eloquent’s query API for consistency.
  • Developer Experience (DX) for Content Teams: Allows non-technical users to edit content in Markdown/JSON files (via Git, CMS plugins, or IDEs) while developers interact via Eloquent.
  • Hybrid Architectures: Useful for decoupling content from traditional databases (e.g., microservices, serverless, or edge-cached content).
  • Roadmap for "Headless" Features: Supports future plans for static site generation, API-driven content, or multi-channel publishing (e.g., web + mobile apps).
  • Build vs. Buy: Avoids building custom file-based CMS logic or integrating third-party tools (e.g., Strapi, Contentful) for simple use cases.
  • Local Development/Prototyping: Speeds up iteration for content-heavy features without database setup (e.g., marketing sites, internal wikis).

When to Consider This Package

  • Avoid if:
    • Your use case requires high write throughput (e.g., e-commerce product catalogs with frequent updates).
    • You need ACID transactions, complex relationships, or joins (flat files lack relational queries).
    • Your team lacks Markdown/JSON familiarity (content editors may struggle with file-based workflows).
    • You’re building a scalable SaaS product with multi-tenant data isolation (filesystems aren’t tenant-aware by default).
    • You require advanced search (consider Algolia, Meilisearch, or database full-text search instead).
  • Look elsewhere if:
    • You need real-time collaboration (use a database or tools like TipTap/ProseMirror).
    • Your content is binary-heavy (images/videos; use S3 or dedicated media libraries).
    • You’re constrained by file system permissions (e.g., shared hosting with restricted storage).

How to Pitch It (Stakeholders)

For Executives: "Laravel Paper lets us store content (e.g., blog posts, docs) as simple Markdown/JSON files—no databases, no ops overhead—while keeping the same code patterns our team already uses. This cuts infrastructure costs, speeds up content updates, and aligns with our [roadmap for static sites/APIs]. For example, our marketing team could edit posts directly in GitHub, while developers query them via Eloquent—just like a database. Low risk, high flexibility."

For Engineering: *"This replaces custom file-parsing logic with a first-class Eloquent driver. Key benefits:

  • Zero schema migrations: Files are self-describing (YAML frontmatter).
  • Familiar API: Use Post::where('published', true)->get() on flat files.
  • Lightweight: No database server, just PHP + filesystem.
  • Extensible: Supports both Markdown (for readability) and JSON (for structured data). Tradeoff: Not for high-write or relational workloads. Ideal for content-heavy but low-volume use cases (e.g., docs, marketing sites)."*

For Design/Content Teams: "You’ll edit content in your preferred format (Markdown or JSON) and save files directly—no more waiting for devs to update a CMS. Files live in folders like /content/posts, so you can use Git, VS Code, or even Notion integrations. Developers will still be able to fetch your content via code, just like before."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor