labrodev/laravel-markdownable
Laravel package to load Markdown pages with YAML front matter by slug, parse metadata, convert to HTML, and return a structured PageData object. Includes contracts for swapping implementations and a Markdownable facade for simple access.
title, description) for SEO and navigation.about.en.md, about.es.md) and route dynamically.Adopt When:
Look Elsewhere When:
example.com/{locale}/about) without manual file management."This package lets us treat content like code—stored in Markdown files in Git, version-controlled, and deployed with our app. For low-volume, static content (e.g., marketing pages, docs), it’s faster and cheaper than a CMS, eliminates vendor lock-in, and keeps content updates in sync with our development workflow. We can launch pages instantly by editing a file, and metadata (SEO tags, titles) is structured automatically. Ideal for projects where content is an afterthought, not the core product."
Key Benefits:
*"This is a lightweight, Laravel-native way to manage structured content without a database. It’s a drop-in solution for:
PageData objects (easy to use in Blade, APIs, or SEO tools).pages/about.md → /about).Trade-offs:
Proposal: Use this for:
Next Steps:
cache()->remember() around Markdownable::getPageBySlug())."*How can I help you explore Laravel packages today?