Category Archives: Classes

Comparator Tools

Package:
Comparator Tools
Summary:
Compare and sort objects of many types
Groups:
Data types, Language, PHP 5
Author:
Fabian Schmengler
Description:
This package can be used to Sort and compare objects of many types.

It defines the comparable interface that is implemented by several different objects meant to compare common types of values like as files by any of their attributes such as name, size, creation or modification time.

Additionally it provides classes that take advantage of objects that implement the Comparable interface to sort arrays of objects.


X base

Package:
X base
Summary:
Convert numbers between different numeric bases
Groups:
Math, PHP 5
Author:
Uwe Stein
Description:
This class can be used to convert numbers between different numeric bases.

It can take a number represented in a numeric base and convert it to the representation in a different base.

Currently it supports numeric bases between 2 and 72.


Read arguments

Output of the example script
Package:
Read arguments
Summary:
Read and validate shell command line arguments
Groups:
Console, Validation
Author:
Manuel Lemos
Description:
This class can can be used to read and validate shell command line arguments.

It can parse the values of arguments passed to a PHP script started from a command line shell to validate them according to rules defined by the current script.

It supports mandatory arguments, optional arguments, switch arguments, multiple alternatives to an option switches, and a special argument that makes show a nicely formatted help usage message.

The class extract the argument values into an array if the argument rules are validated.


Small Google Translator

Package:
Small Google Translator
Summary:
Translate text using Google Traslate API
Groups:
Localization, PHP 5, Web services
Author:
Pawan Adhikari
Description:
This class can be used to translate text using Google Translate API.

It can take a text and send an HTTP request to Google Translate API Web servers to translate the text between two given idioms.

Currently it supports the following idioms: Arabic, Bulgarian, Simplified Chinese, Traditional Chinese, Croatian, Czech, Danish, Dutch, English, Finnish, French, German, Greek, Hindi, Italian, Japanese, Korean, Polish, Portuguese, Romanian, Russian, Spanish and Swedish.


MySQL Newsletter

Package:
MySQL Newsletter
Summary:
Store and retrieve newsletter e-mails from MySQL
Groups:
Databases, PHP 5
Author:
Carlson A. Soares
Description:
This class can be used to store and retrieve newsletter subscriber e-mail addresses from a MySQL database.

It can create a MySQL database table for storing subscriber addresses, add an e-mail address, remove an e-mail address and retrieve the whole list of subscriber addresses.


S-mail

Package:
S-mail
Summary:
Compose and send e-mail messages
Groups:
Email, PHP 5
Author:
Diogo Del Santo
Description:
This class can be used to compose and send e-mail messages.

It can compose and e-mail message adding the necessary headers for setting recipients in To:, Cc: and BCc: headers, sender address, the message subject.

The composed message is sent with the PHP mail() function.

The code and the comments are in Portuguese.


Barcode PHP

Package:
Barcode PHP
Summary:
Generate barcode images and PDF files
Groups:
Graphics, PHP 5
Author:
firejocker
Description:
This class can be used to generate barcode images and PDF files.

It can take a GD image resource and render a barcode on the image with a given size.

The class can also render a barcode in a PDF object of the class FPDF.

Currently it supports barcodes in the formats: codabar, code 11, code 39, code 93, code 128, ean 8, ean 13, standard 2 of 5, interleaved 2 of 5, msi and datamatrix.


Barcode PHP

Package:
Barcode PHP
Summary:
Generate barcode in GD and PDF
Groups:
Graphics, PHP 5
Author:
Jean-Baptiste DEMONTE
Description:
This class can be used to generate barcode in images and PDF files.

It can take a GD image ressource and render a barcode on it.

The class can also render a barcode in a PDF object of the class FPDF.

Currently it supports barcodes in the formats: codabar, code 11, code 39, code 93, code 128, ean 8, ean 13, standard 2 of 5, interleaved 2 of 5, msi and datamatrix.


Simple MySQL Query

Package:
Simple MySQL Query
Summary:
MySQL database access wrapper
Groups:
Databases, PHP 5
Author:
Enio Borges Ribeiro
Description:
This class implements a MySQL database access wrapper.

It can establish MySQL database connections, execute SELECT, INSERT and DELETE queries from lists of parameters and return the results as arrays.

In Portuguese:

Esta é uma simples classe para inserção, leitura e exclusão de dados MySQL.
Criei esta classe para fins de estudo mas, já a usei em alguns projetos e me serviu bastante. Espero que sirva pra você também.


Page Control Class

Package:
Page Control Class
Summary:
Generate links to browse listings split in pages
Groups:
HTML, PHP 5
Author:
Kai Ming Choi
Description:
This class can be used to generate links to browse listings split between multiple pages.

It takes as parameters the number of entries in the listing, the limit number of entries to display per page and the current page number.

The class returns an array with HTML links to the next and previous pages.


Powered by Gewgley