Download the PHP package jinas/dhivatar without Composer
On this page you can find all versions of the php package jinas/dhivatar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package dhivatar
dhivatar
PHP port of phoenixatom Dhivatar package
Installation
Usage
This will output a base64 encoded of the image
OUTPUT:
OUTPUT:
You can chain setters to customize the generated image.
If you don't set a background image. It will automatically generate a random background color.
Available Methods
- setBackground(string \$background) : Set the background of the image
- setSize(int $width, int $height) : Set the size of the image canvas
- setText(string $text, string $color) : Set the text and text color
- setFontSize(int \$size) : Set the font size
- build() : This method will return an instance of
Intervention\Image\Image
after building the image. Any methods available by Image Intervention you can call to render,ouput or save the image.
Project by Jinas.
Inspired by phoenixatom dhivehi-avatar
Looking for an API that does this?
Head over to Dhivatar API. A project by Baivaru
All versions of dhivatar with dependencies
PHP Build Version
Package Version
Requires
intervention/image Version
^2.5
The package jinas/dhivatar contains the following files
Loading the files please wait ....