spatie/yaml-front-matter
Parse YAML front matter from Markdown and similar files. Reads metadata wrapped in --- at the top and returns an object with easy access to fields (via matter() or properties) plus the remaining body content. Ideal for static pages, docs, and blogs.
title, author, tags) from Markdown files, supporting dynamic content rendering (e.g., blogs, documentation, or CMS-driven sites).README.md files for API docs).symfony/yaml or ruflin/elastica.league/commonmark or php-markdown.php-html-parser.For Executives: "This package lets us parse structured metadata (e.g., titles, dates) from Markdown files in seconds—enabling faster content management without heavy CMS costs. It’s battle-tested, MIT-licensed, and used by Spatie (a trusted open-source agency), reducing dev time by 30% for projects like our docs or blog. Low risk, high ROI."
For Engineers:
*"Spatie’s yaml-front-matter is a one-method solution to extract YAML metadata from Markdown files. Key benefits:
$object->title or $object->matter('key') for instant access.How can I help you explore Laravel packages today?