An open API service indexing awesome lists of open source software.

https://github.com/chrishubert/memegenerator

Meme generator class
https://github.com/chrishubert/memegenerator

Last synced: about 1 month ago
JSON representation

Meme generator class

Awesome Lists containing this project

README

          

Meme generator class
====================

##Description

Meme Generator adds user entered text to given image in two possitions.

Text can be placed at the top of image and at the bottom.

If it is too long, text will be splitted into two rows.

Font size is automatically calculated for best fit in image and it gets centered.

At this point meme generator isn't meant to store generated images on server, but rather to generate them in runtime from simple database info.

##Usage

###Usage with Laravel 4

Inside of `app` folder create folder called `classes`, and then go to your `start/global.php` file and edit your code so it looks something like this

ClassLoader::addDirectories(array(

app_path().'/commands',
app_path().'/controllers',
app_path().'/models',
app_path().'/database/seeds',
app_path().'/classes' //this line is added

));

Put `MemeGenerator.php` into `classes` folder.

Next go to `controllers` folder and place SampleController.php into it (or use your own controller).
Make sure you do `php artisan dump-autoload`.

Import `memegenerator.sql` into your database.