apility/opengraph
A Laravel package for fetching and parsing Open Graph metadata from URLs, letting you extract titles, descriptions, images, and other page preview data for link cards and rich embeds.
containsProperty helper reduces the "we could just hardcode this in a Blade layout" argument — the package now covers the two dominant card formats, which is the main reason to adopt rather than hand-roll.containsProperty lets templates branch on whether a given OG property is already set — useful if you want per-page overrides (e.g., product pages vs. blog posts) without duplicating meta-tag logic. This is a small but real ergonomics win for templating flexibility.Consider it when:
containsProperty) instead of copy-paste.Look elsewhere when:
For executives: A small, low-cost Laravel package that standardizes how our pages appear when shared on social platforms. The latest release adds Twitter/X card support, meaning link previews look correct across the two biggest social channels — a direct lever on click-through and campaign performance at essentially no engineering cost.
For engineering: It's a thin wrapper over OpenGraph and Twitter Card meta tags with a helper (containsProperty) for conditional rendering. Adoption is a composer install plus template wiring — no schema changes, no migrations, no breaking API surface in this release. The tradeoff is a third-party dependency for something we could build ourselves in an afternoon; the justification is consistency and testability across page types, not raw capability.
Recommendation: Worth a timeboxed spike if social sharing is on the roadmap; otherwise park it. The v1.0.4 changes are additive and non-breaking, so there's no urgency or risk in waiting.
How can I help you explore Laravel packages today?