MotivationImage

Powerful PHP class to generate motivation images

MotivationImage is a fully namespaced PHP class (built on top of Mixer library) which generates motivation images.

To construct MotivationImage object you pass image file(s) as an constructor argument and an array of properties:

use MotivationImage\MotivationImage;

$mi = new MotivationImage( 'img' . DIRECTORY_SEPARATOR . 'lima.landscape.1.jpg', array(
    'website' => 'SAMPLEWEBSITE.COM',
    'title' => 'Adriana Lima',
    'description' => 'Brazilian model and actress who is best known as a Victoria\'s Secret Angel since 2000, and as a spokesmodel for Maybelline cosmetics from 2003 to 2009',
));
$mi->generate()->show(); // will set appropriate headers and send an image to the browser
$mi->generate()->save('motivation_image.jpg'); // will save an image to file

Pass an array of image paths as first constructor param to supply more than one image.

name default value type description
title null string Motivation image title. Usually placed at the top.
description null string Motivation image description. Usually placed at the bottom.
website null string Motivation image signature - usually the name of the site that hosts this image.
theme 'Simple' string Motivation image theme.
mode auto-detected string By choosing right mode you can decide how multiple-images will be placed in relation to each other in motivation image.

MotivationImage::MODE_BROTHERS - images will be joined horizontally
MotivationImage::MODE_MULTI - images will be joined vertically
engine auto-detected string Engine that will be used while generating this motivation image. More details about engines here.

All above properties have their respective getters/setters, for example: setTitle(), getTitle().

Name Preview
Simple
Classic
Meme

At the moment the class is not open-source. If you would like to use it in your project - write me an e-mail describing general details. I may send you zipped archive (together with Mixer class) for free or ask for small donation via PayPal or Bitcoin to support project development.