PHP Post-it Notes: Generate images with text using vectorial fonts

Recommend this page to a friend!
  Info   Documentation   View files (43)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
59%Total: 277 All time: 7,514 This week: 328
Version License PHP version Categories
post-it 1.0.2Custom (specified...5.3XML, PHP 5, Graphics, Text processing
Description Author

This package can generate images with text using vectorial fonts.

It takes one image in the BMP format of a chosen color and renders a given text string on it.

It uses a font defined in vectorial format with characters defined in a special XML files.

Innovation Award
PHP Programming Innovation award nominee
November 2016
Number 6


Prize: One downloadable copy of CodeLobster Professional
PHP can render text on images but sometimes the necessary extensions or fonts may not be available to render text on images with the usual image functions.

This packages provides an alternative solution that can render text on BMP images using pure PHP code.

The fonts are defined as XML files provided by the package with the definition of lines to render letters as vectorial text.

Manuel Lemos
Picture of Bruno Henrique Ferreira de Oliveira
  Performance   Level  
Name: Bruno Henrique Ferreira ... <contact>
Classes: 4 packages by
Country: Brazil Brazil
Age: 27
All time rank: 2869212 in Brazil Brazil
Week rank: 713 35 in Brazil Brazil
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Details

?=============Web Post-it for PHP=============

Introduction.

This php class takes a given string and writes it on bitmaps bmp images using the bin to hex methods.

-Each post-it can be saved as bmp;

-The Bitmaps images are generated in public/posted/user.application/[Section chosen]/[color chosen-string data].bmp;

-Append post-it on any of sections;

-Supports [a-z] pattern;

-Arial 48 font and english characters are supported.

-It may fill until 3 lines with text;

-You may choose a color for the post-it.

Requirements.

-PHP 5.3;

Usage.

-Adding post-it is easy, only click on the color button

-Click on post-it body to bring it up while have many post-it in front of.

-You can decide what section you will post it changing box then press Postit to commit.

-The page will reload and you will see the post-it appended on the section chosen.

-You can delete the post-it just dragging it;

To do.

-Fix few white borders in some words.

-Add support for numbers and symbols.

-Save all sections as zip or image.

-Maybe I will add more fonts and characters of portuguese, spanish, chinese or russian;

License

-In the custom license file.

  Files  
File Role Description
public (1 file, 3 directories)
resources (3 files, 1 directory)
doc (3 files)
README.md Doc. Readme file.
LICENSE Lic. License text

  Files  /  public  
File Role Description
js (2 files)
postit (5 files)
css (1 file)
   home.html Example Demonstrates the class utility.

  Files  /  public  /  js  
File Role Description
   createPostit.js Data Post-it creation request.
   verifyPostit.js Data Post-it load request.

  Files  /  public  /  postit  
File Role Description
   blue.bmp Data Blue postit.
   green.bmp Data Green postit.
   pink.bmp Data Pink postit.
   red.bmp Data Red postit
   white.bmp Data White postit.

  Files  /  resources  
File Role Description
letters (1 directory)
   letters.php Class The main class that manipulates images.
   postitload.php Example Post-it load response.
   postitunload.php Class Post-it unload process.

  Files  /  resources  /  letters  
File Role Description
en (1 directory)

  Files  /  resources  /  letters  /  en  
File Role Description
arial-48 (26 files)

  Files  /  resources  /  letters  /  en  /  arial-48  
File Role Description
   a.xml Data Word a lib.
   b.xml Data Word b lib.
   c.xml Data Word c lib.
   d.xml Data Word d lib.
   e.xml Data Word e lib.
   f.xml Data Word f lib.
   g.xml Data Word g lib.
   h.xml Data Word h lib.
   i.xml Data Word i lib.
   j.xml Data Word j lib.
   k.xml Data Word k lib.
   l.xml Data Word l lib.
   m.xml Data Word m lib.
   n.xml Data Word n lib.
   o.xml Data Word o lib.
   p.xml Data Word p lib.
   q.xml Data Word q lib.
   r.xml Data Word r lib.
   s.xml Data Word s lib.
   t.xml Data Word t lib.
   u.xml Data Word u lib.
   v.xml Data Word v lib.
   w.xml Data Word w lib.
   x.xml Data Word x lib.
   y.xml Data Word y lib.
   z.xml Data Word z lib.

  Files  /  public  /  css  
File Role Description
   style.css Data Simple css style file.

  Files  /  doc  
File Role Description
   bmp.txt Doc. Documentation
   DOC.md Data Auxiliary data
   first_test.txt Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:277
This week:0
All time:7,514
This week:328
 User Ratings  
 
 All time
Utility:75%
Consistency:75%
Documentation:75%
Examples:66%
Tests:-
Videos:-
Overall:59%
Rank:1449
  

For more information send a message to info at phpclasses dot org.