Category Archives: Classes

Buscador

Package:
Buscador
Summary:
Crawl and search files and Web pages
Groups:
HTML, PHP 5, Searching
Author:
Patricio Cardó
Description:
This class can be used to crawl and search files and Web pages.

It can retrieve a given start file or URL and parse it as HTML file to index its contents and extract its links.

The class follows the linked URLs recursively to continue crawling until all alowed links were followed.

A separate class may be given to perform the actual search of the crawled content.


Siviglia Templating

Package:
Siviglia Templating
Summary:
Template engine that uses PHP as template language
Groups:
Code Generation, Templates
Author:
Jose Maria Rodriguez Millan
Description:
This package implements a template engine that uses PHP as template language.

It takes template strings which are PHP scripts, and parse them using the PHP tokenizer extension to figure the blocks and sections of the template.

The template engine supports several types of tags which are converted into PHP code and merged with the template PHP code. The resulting code is executed to generate the template output.


PHP Chord

Sample chord
Package:
PHP Chord
Summary:
Render images with guitar chords
Groups:
Audio, Graphics, PHP 5
Author:
Tony Pottier
Description:
This class can be used to render images with chords for guitars or other instruments.

It takes as parameters the notes of the chord that should be used for each string.

The class can generate an image with the strings and the positions and representation of the chord note positions.

The generated image is displayed as the current output in PNG format.


Images Comparison Class

Package:
Images Comparison Class
Summary:
Compare two images to check if they are identical
Groups:
Graphics, PHP 5
Author:
Kai Ming Choi
Description:
This class can be used to compare two images to check if they are identical.

It can traverse two given images in the PNG format of the same size to determine which pixels are different.

The class can circle or fill the areas that are different with a given color. The resulting image is displayed as the current output in the PNG format.


Picture Thumbnail

Package:
Picture Thumbnail
Summary:
Create image thumbnails
Groups:
Graphics
Author:
karim somai
Description:
This class can be used to create image thumbnails.

It can load a picture in GIF, PNG, JPEG and BMP formats and generate a thumbnail with a given width and height.

The class can also render a given text on the thumbnail image.

The generated thumbnail image is saved to a file in the JPEG format.


Convert number to text

Package:
Convert number to text
Summary:
Format money amounts for Egypt and Saudi Arabia
Groups:
Finances, PHP 5, Text processing
Author:
Osama Salama
Description:
This class can be used to format money amounts for Egypt and Saudi Arabia.

It can take a given amount in the currency of Egypt or Saudi Arabia and return its text representation.


class Graph

Package:
class Graph
Summary:
Render images with bar or pie charts
Groups:
Graphics, PHP 5
Author:
Lukasz Socha
Description:
This package can be used to render images with bar or pie charts.

There is a base class with primitives to create and initialize images.

There are also two sub-classes that can render bar or pie charts and display them as the current script output in PNG format.


Powered by Gewgley