Skip to main content

flyyer package



This module is agnostic to any PHP framework and requires PHP >= 7.1.

1. Install flyyer/flyyer#

Install it with Composer.
composer require flyyer/flyyer

2. Format Flyyer CDN URLs#

Find your project identifier here. If you don't have a project yet, create one here.

Now you can format Flyyer CDN URLs like shown below.

require_once 'vendor/flyyer/flyyer/src/Flyyer.php';
$flyyer = new Flyyer  # Your project identifier  'your-project-identifier',  # The current pathname of your website, try to set it dynamically  '/path/to/product',);
// Use this image URL in your <head/> tags$url = $flyyer->href();// >

Take a look into the Wordpress integration guide to see a full example for your specific setup. You're invited to contribute to the PHP documentation and add your own guide for other technologies.


The meta-tags code needs to be static, processed at build time or server-side rendered for link previews to work.

3. Voilà 🎉#

Now you're able to manage your link previews from your dashboard, create content from templates while preserving your brand style and export it as social media formats.

Go to your dashboard 🚀

Advanced usage#

Signed URLs#

The package flyyer/flyyer supports HMAC and JWT signatures.

Find your secret key here under Signed URLS, and enable the signing strategy you desire.

require_once 'vendor/flyyer/flyyer/src/Flyyer.php';
$flyyer = new Flyyer('your-project-identifier', '/path/to/product');$flyyer->secret="your-secret-key";$flyyer->strategy="JWT"; // or "HMAC"
// Use this image URL in your <head/> tags$url = $flyyer->href();// >