https://github.com/chrishubert/memegenerator
Meme generator class
https://github.com/chrishubert/memegenerator
Last synced: about 1 month ago
JSON representation
Meme generator class
- Host: GitHub
- URL: https://github.com/chrishubert/memegenerator
- Owner: chrishubert
- License: gpl-3.0
- Created: 2014-11-20T15:32:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-24T10:42:11.000Z (over 12 years ago)
- Last Synced: 2025-01-26T12:41:29.620Z (over 1 year ago)
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.