laravel maintained by ogmake
ogmake/laravel
Laravel integration for ogmake — build signed
og:image URLs without writing HMAC signing yourself.
Install (60 seconds)
composer require ogmake/laravel
php artisan vendor:publish --tag=ogmake-config
Add your key to .env (get one at https://ogmake.com/login, see the
quickstart docs):
OGMAKE_KEY_ID=k_...
OGMAKE_SIGNING_SECRET=base64-secret-shown-once-when-the-key-was-issued
OGMAKE_BASE_URL=https://ogmake.com
First image
use Ogmake\Laravel\Facades\Ogmake;
$url = Ogmake::url('blog', [
'site' => 'My Blog',
'author' => 'Jane Doe',
'date' => '2026-09-20',
'title' => 'Hello World',
]);
// https://ogmake.com/i/k_.../<sig>?author=Jane%20Doe&date=2026-09-20&site=My%20Blog&template=blog&title=Hello%20World
Or drop the Blade component straight into a <head>:
<x-og-image template="blog" :params="[
'site' => config('app.name'),
'author' => $post->author,
'date' => $post->published_at->toDateString(),
'title' => $post->title,
]" />
{{-- <meta property="og:image" content="https://ogmake.com/i/k_.../<sig>?..."> --}}
The URL renders on first request and serves from cache after that — no server round trip needed at request time.
How signing works
Same canonical-query algorithm as every other language snippet on the
signing docs page:
drop sig and debug, sort remaining keys by UTF-8 byte order (equivalent to
codepoint order for valid Unicode text), RFC3986-encode each
key=value pair, join with &, then HMAC-SHA256 with your signing secret and
base64url-encode the digest. See src/Signing.php.
Pricing
Free 100 images/month · Starter $12 per 1,000 · Scale $49 per 10,000. See ogmake.com/pricing for current tiers.
Docs
Full API reference: https://ogmake.com/docs/quickstart
Testing this package
composer install
composer test
License
MIT