Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Opengraph Laravel Package

shweshi/opengraph

shweshi/opengraph is a Laravel package for extracting Open Graph metadata from any URL through a simple facade. Quickly retrieve titles, descriptions, images, and other OG tags to build rich link previews, social sharing cards, and SEO-friendly content.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Social/SEO surface area for shared links. The package generates Open Graph (og:*) and Twitter Card meta tags, plus supports fetching and caching metadata from external URLs. This directly affects how product pages render when shared on Facebook, LinkedIn, X, Slack, WhatsApp, and iMessage — a measurable CTR lever for content, marketplace, and referral-driven products.
  • Build vs. buy for commodity infrastructure. OG tag assembly, escaping, fallback logic, and URL metadata scraping are undifferentiated plumbing. Adopting this package lets the team spend engineering cycles on the content model, OG image design, and share-flow UX instead of re-implementing meta tag plumbing.
  • Roadmap enablement. Supports features like dynamically generated preview cards for user profiles, listings, blog posts, and campaign landing pages — anything where the page URL is composed at request time rather than hardcoded.
  • Framework upgrade planning. v1.2.1 adds Laravel 13 compatibility, which is the meaningful signal here: the package tracks framework majors with a same-release-line patch. That removes it as a blocker in a Laravel upgrade roadmap and lowers the cost of staying on a supported framework version.
  • Dependency risk budgeting. Because it sits in the rendering path of every shared page, it belongs on the watchlist for maintenance health, security advisories, and version pinning — not on the "install and forget" list.

When to Consider This Package

Adopt when:

  • You run a Laravel app with dynamically composed pages (CMS content, listings, profiles, articles) that are distributed via social or messaging links.
  • You want standard OG and Twitter Card output without hand-maintaining Blade partials, escaping rules, and per-platform fallback quirks.
  • You need to derive tags from an external URL (link unfurling) and want caching built in rather than bolted on.
  • SEO/social presentation matters to the business but is not a core competency — small team, near-term deadline.
  • You are on, or planning to move to, a current Laravel major; v1.2.1 exists specifically to keep the package installable on Laravel 13.

Look elsewhere when:

  • The front end is an SPA or SSR framework (Inertia + Vue/React, Next.js). Meta tags need to be managed where the document head is rendered; a PHP-side package alone will not cover client-rendered routes.
  • You need a full SEO suite — sitemaps, JSON-LD/structured data, canonical URLs, hreflang, robots directives. This package is a meta-tag generator, not an SEO platform; expect to pair it with something broader.
  • The site is static marketing pages where tags can simply be written into templates.
  • You require vendor SLAs, paid support, or a dependency policy that mandates first-party or multi-maintainer projects. This is a community package with a small maintainer base — acceptable for most teams, but it should be a conscious call, and version pinning plus a smoke test around tag output is the mitigation.
  • You need high-volume, per-locale OG image generation. That is an image pipeline problem; this package only emits the tag pointing at the image.

How to Pitch It (Stakeholders)

For executives: This is a small, free, MIT-licensed library that makes our pages render with proper titles, descriptions, and preview images when people share them on social platforms and in messaging apps. Better previews mean more clicks from the same traffic — it is a cheap, direct lever on acquisition. Operating cost is effectively zero, and the v1.2.1 release confirms the project is being kept current with Laravel's latest major version, so it will not become a blocker when we upgrade the framework.

For engineering: Add via Composer, publish the config, and emit tags through the facade or a Blade include; it also handles fetching and caching metadata from external URLs. The 1.2.1 change set is a single non-breaking Laravel 13 compatibility update plus a first-time contributor — no API changes, no deprecations, safe to bump on a patch. Two caveats worth stating up front: it is community-maintained with a narrow contributor base, so pin the version and add a thin test asserting our expected tag output; and it only covers server-rendered heads, so any client-rendered routes need their own meta handling. Recommend a trial on one high-traffic template, measure share-preview quality, then roll out.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager