simonhamp/the-og
simonhamp/the-og is a lightweight PHP package for generating Open Graph images. Build customizable social share cards with text, colors, and images, then render them to PNG. Its simple API makes dynamic OG image generation easy to add to PHP and Laravel apps.
Border::color(), Image::border(), Box::anchor(), and Layout::render() signatures) are a decision gate — treat this as an upgrade project requiring PHP runtime bump and code audit for any custom Box/Layout implementations or direct Intervention Image usage.Layout or Box classes now have a forced, small refactor — factor this into effort estimates and release timing.intervention/image constraints or direct v2/v3 API usage elsewhere in the app before upgrading).Box / Layout implementations for the changed return types and Border::color() string parameter.v0.8.x), so expect further breaking changes; a "pin and isolate" approach is prudent.To executives: The OG is a Laravel package that generates branded social share images from our own content data, on our own infrastructure — no per-image fees and no third-party dependency. Adopting it supports marketing and growth features like richer social previews and dynamic campaign cards. The trade-off is a small platform commitment (PHP 8.3+) and an upgrade project to reach v0.8.0. Because the package is pre-1.0, we should treat it as an internal, contained integration and pin the version.
To engineering: v0.8.0 is a breaking release — it moves to Intervention Image v4, requires PHP 8.3+, and changes several public signatures (Border::color() now takes a string, Image::border() takes ?string, and the Box::anchor() / Layout::render() return types now use Intervention interfaces). Plan the upgrade as a scoped task: bump PHP, resolve intervention/image to ^4.0, and audit any custom Box or Layout classes and direct Intervention usage. The package is pre-1.0, so lock the version and isolate usage behind our own wrapper to contain future churn.
How can I help you explore Laravel packages today?