Skip to content

ibnnajjaar/graphify

Repository files navigation

Graphify

Latest Version on Packagist Total Downloads

Generating open graph images will be made easy with the use of this package.

Documentation

See the documentation for detailed installation and usage instructions.

What It Does

Generating Open Graph Images

If the model preparation is done correctly, an OG Image will be created when a new record is created.

Manually Triggering OG Image Generation

To manually trigger OG Image generation, you can call generateGraphify() method on your model instance as below.

$yourModel->generateGraphify();

Retrieving OG Images

To retreive a generated OG image, you can use the below methods.

$yourModel->graphify_image;
$yourModel->og_image_url;

// Or if you have a custom image field
$yourModel->your_custom_og_image_url;

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A simple open graph image generator package for blogs

Resources

License

Stars

Watchers

Forks

Packages

No packages published