webuni/front-matter
webuni/front-matter is a PHP library for extracting and parsing front matter from files. It separates metadata from content, supports YAML-style headers, and makes it easy to read Markdown front matter in PHP applications. Simple, lightweight, and framework-agnostic.
--- metadata from body content. That lets the team spend effort on editorial workflow, permissions, search, and rendering instead of parser edge cases.Consider it when:
--- delimiters.Look elsewhere or build in-house when:
For executives: This is a small, MIT-licensed utility that can shorten delivery of content-import and Markdown-editorial features. It is low-cost and easy to isolate, so the main risk is not financial but dependency ownership. Recommendation: approve a time-boxed spike, wrap it behind our own service, and avoid making it a platform-wide standard until usage proves out.
For engineering: The package does one job: extract YAML front matter and return metadata plus body. It is framework-agnostic and Composer-ready, so it fits a Laravel importer, Artisan command, or content service without coupling to our domain model. We should pin the version, add contract tests for documents with and without front matter, and keep the integration behind an interface so we can swap it if maintenance or edge-case coverage becomes a concern. Treat it as a convenience dependency, not a core platform bet.
How can I help you explore Laravel packages today?