Download the PHP package fractal512/og-image without Composer
On this page you can find all versions of the php package fractal512/og-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fractal512/og-image
More information about fractal512/og-image
Files in fractal512/og-image
Package og-image
Short Description Open Graph image generator based on Intervention Image - PHP image processing library
License MIT
Homepage https://github.com/fractal512/og-image
Informations about the package og-image
Open Graph Image Generator
Open Graph image generator based on Intervention Image - PHP image processing library.
Features:
- Image generation with fully customizable text, logo, background and overlay
- Background image effects, like a blur, grayscale, etc.
- Custom fading overlay over background
- Easy switch between GD and Imagick drivers
Requirements
- PHP 8.1 or higher
- Intervention Image 3.0 or higher
Installation
The package can be installed via composer:
For the Laravel framework use fractal512/laravel-og-image package.
Usage
Use make()
method to create Open Graph image, overriding default settings with needed in $config
array before:
Custom background can be passed as a second parameter in make()
method:
Output image format
The format of the output image is autodetected from the path passed to the save()
method:
Configuration
Built-in default configuration settings list:
Credits
- Denys Vashchuk (fractal512)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.