jberall/yii2-signature-font

Renders an image using php GD

dev-master 2017-03-08 23:55 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:46:50 UTC


README

Displays images using php gd

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist jberall/yii2-signature-font: "dev-master"

or add

"jberall/yii2-signature-font": "dev-master"

to the require section of your composer.json file.

composer update jberall/yii2-signature-font will only update this file.

Usage

To use the SignatureFontController in your config file add 'controllerMap' => [ 'signfont' => 'jberall\signaturedraw\SignatureFontController',

],

to add an signature Font

use yii\helpers\Url;

$message default 'Signature Font Message' $font default = 'learning_curve_regular_ot_tt.ttf' $image_width default 500 $image_height default 30 $font_folder = 'c:\fonts\' path to your font. if windows make sure you have \