PHP Classes
elePHPant
Icontem

Pure PHP Text Render: Render text in an image in pure PHP

Recommend this page to a friend!
  Info   View files Example   Demos   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-09-01 (2 years ago) RSS 2.0 feedNot enough user ratingsTotal: 547 This week: 1All time: 5,257 This week: 1,047Up
Version License PHP version Categories
pure-text-render 1.0GNU Lesser Genera...4.0PHP 5, Graphics, Text processing
Description Author

This class can render text in an image in pure PHP.

It can create an image rendering a given text in it. The text may have line break characters to split the text in multiple lines.

The class contains the definition the bitmaps of each character of the supported built-in font.

The rendered text can be scaled or rotated.

The image can be saved in BMP format without using the GD or any PHP image extension.

Innovation Award
PHP Programming Innovation award nominee
August 2014
Number 2


Prize: One year server license IP to country, region, city, latitude, longitude, ZIP code, time zone, area code database
PHP can used the GD extension to create images with text rendered on them. However, sometimes it is not possible to use the GD extension for some reason.

This class provides an alternative solution for creating images with text using pure PHP code that does not use the GD extension.

Manuel Lemos
Picture of Abius X
  Performance   Level  
Name: Abius X <contact>
Classes: 4 packages by
Country: Iran Iran
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Online SampleExternal page  
Screenshots  
  • screenshot2.png
  • screenshot1.png
  • rotated.jpg
  • captcha.jpg
  Files folder image Files  
File Role Description
Plain text file pure_text_render.php Class main class file
Accessible without login Image file captcha1.bmp Output sample generated CAPTCHA
Accessible without login Image file captcha2.bmp Output sample generated CAPTCHA
Accessible without login Plain text file example.php Example sample usages
Accessible without login Plain text file example_captcha.php Example PureCaptcha Example
Plain text file pure_captcha.php Class Generate Nice Pure Captchas Using PureTextRender

 Version Control Unique User Downloads Download Rankings  
 0%
Total:547
This week:1
All time:5,257
This week:1,047Up
User Comments (1)
very good
2 years ago (hassan ahmadi)
70%StarStarStarStar