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.
webuni/front-matter is a single-purpose, framework-agnostic PHP parser. In Laravel it fits best as an infrastructure/support dependency behind an application-owned adapter, used by content import commands, queued jobs, CMS ingestion services, and Markdown/blog pipelines. It should not leak directly into controllers, models, or Blade views.symfony/yaml. Laravel already ships Symfony components, so version-constraint conflicts are the main feasibility check. There is no Laravel service provider or facade, so the team should wrap it in a FrontMatterParser contract and bind it in a service provider.symfony/yaml versions are supported, and do they conflict with the target Laravel version?App\Support\FrontMatter\FrontMatterParser. Define an interface for parsing and bind it in a Laravel service provider. Use it in import commands/jobs and content services; validate extracted metadata with Laravel validators or a schema before persisting. Store metadata in a JSON column and body in a text column with appropriate casts.metadata and body columns or a normalized content table. Backfill via chunked queued jobs with raw-content fallback. If replacing an existing parser, run old/new comparison on a sample and track differences before cutover.composer why-not. Run CI against the target Laravel/PHP matrix. Do not rely on Laravel auto-discovery; integration is manual. Confirm behavior with Laravel’s JSON casting, validation, and queue serialization.How can I help you explore Laravel packages today?