PHP Classes

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

Recommend this page to a friend!
  Info   View files Documentation   View files View files (43)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 282 All time: 7,572 This week: 310Up
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: 31
All time rank: 2910212 in Brazil Brazil
Week rank: 312 Up26 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Documentation

?=============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 folder image Files  
File Role Description
Files folder imagepublic (1 file, 3 directories)
Files folder imageresources (3 files, 1 directory)
Files folder imagedoc (3 files)
Accessible without login Plain text file README.md Doc. Readme file.
Accessible without login Plain text file LICENSE Lic. License text

  Files folder image Files  /  public  
File Role Description
Files folder imagejs (2 files)
Files folder imagepostit (5 files)
Files folder imagecss (1 file)
  Accessible without login HTML file home.html Example Demonstrates the class utility.

  Files folder image Files  /  public  /  js  
File Role Description
  Accessible without login Plain text file createPostit.js Data Post-it creation request.
  Accessible without login Plain text file verifyPostit.js Data Post-it load request.

  Files folder image Files  /  public  /  postit  
File Role Description
  Accessible without login Image file blue.bmp Data Blue postit.
  Accessible without login Image file green.bmp Data Green postit.
  Accessible without login Image file pink.bmp Data Pink postit.
  Accessible without login Image file red.bmp Data Red postit
  Accessible without login Image file white.bmp Data White postit.

  Files folder image Files  /  resources  
File Role Description
Files folder imageletters (1 directory)
  Plain text file letters.php Class The main class that manipulates images.
  Accessible without login Plain text file postitload.php Example Post-it load response.
  Plain text file postitunload.php Class Post-it unload process.

  Files folder image Files  /  resources  /  letters  
File Role Description
Files folder imageen (1 directory)

  Files folder image Files  /  resources  /  letters  /  en  
File Role Description
Files folder imagearial-48 (26 files)

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

  Files folder image Files  /  public  /  css  
File Role Description
  Accessible without login Plain text file style.css Data Simple css style file.

  Files folder image Files  /  doc  
File Role Description
  Accessible without login Plain text file bmp.txt Doc. Documentation
  Accessible without login Plain text file DOC.md Data Auxiliary data
  Accessible without login Plain text file first_test.txt Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:282
This week:0
All time:7,572
This week:310Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1330