spatie/laravel-og-image
Generate Open Graph images in Laravel from Blade-defined HTML. Automatically renders screenshots, serves them from a route, and caches files. Templates reuse your app’s CSS, fonts, and Vite assets—no external API required.
The approach of using a <template> tag to define OG images inline (so they inherit your page's own CSS, fonts, and Vite assets) is inspired by OG Kit by Peter Suhm.
If you'd rather not self-host the screenshot infrastructure (Chrome, Browsershot, or Cloudflare Browser Rendering), OG Kit is a great hosted alternative. It uses the same inline-template approach, but handles the screenshot generation for you as a service.
How can I help you explore Laravel packages today?