Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 374 This week: 34All time: 6,049 This week: 27Up
Version License PHP version Categories  
pure-text-render 1.0GNU Lesser General Publ...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
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
Name: Abius X is available for providing paid consulting. Contact Abius X .
Classes: 3 packages by
Country: Iran Iran
Age: 26
All time rank: 169123 in Iran Iran
Week rank: 21 Up2 in Iran Iran Up
Innovation award
Innovation award
Nominee: 2x

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:374All time:6,049
 This week:34This week:27Up
 User Comments (1)  
 
very good
17 days ago (hassan ahmadi)
70%StarStarStarStar