Category Archives: Classes

Zebra Pagination, a generic pagination PHP class

Package:
Zebra Pagination, a generic pagination PHP class
Summary:
Show links to browse listings split in pages
Groups:
HTML
Author:
Stefan Gabos
Description:
This class can be used to show links to browse listings split in pages.

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

The class can generate HTML links to the previous, next and any middle pages.

The style of the navigation links is configurable using CSS styles.


QoS Bandwidth Throttler

Bandwidth throttling in practice
Package:
QoS Bandwidth Throttler
Summary:
Limit the speed of files served for download
Groups:
Files and Folders, HTTP, Performance and optimization, PHP 5, Systems administration
Author:
Artur Graniszewski
Description:
This class can be used to limit the speed of files served for download.

It intercepts the PHP script output by setting a buffering handler that is called every time a given number of bytes are served to the browser.

The class measures the time since the last time the PHP output buffer was flushed and hold on PHP for a while if the average download speed is above a given limit.


Validate form elements

Package:
Validate form elements
Summary:
Validate values of several different types
Groups:
PHP 5, Validation
Author:
Osama Salama
Description:
This class can be used to validate values of several different types.

It takes an array with the values and validation rules that should be verified to check if the values are valid.

Currently it can check for empty values, e-mail addresses, IP addresses, URLs, integer, string, extensions and uploaded files.

The class returns the lists of errors associated to the validation rules which are not satisfied.


MRU manager

MRU sample screenshot
Package:
MRU manager
Summary:
Manage most recently user items in a MySQL table
Groups:
Content management, Databases, PHP 5
Author:
Alexander Selifonov
Description:
This class can be used to manage most recently user items in a MySQL table.

It can create a MySQL table that stores identifiers of mostly recently used items.

The class can also add new items associated to a given item type and user, retrieve the list of added items and remove from the list specific items or items of a given type and user.


Txt Xtrator

Package:
Txt Xtrator
Summary:
Convert data from CSV to other text based formats
Groups:
Files and Folders, PHP 5
Author:
Everton da Rosa
Description:
This class can be used to convert data from CSV to other text based formats.

It can parse and extract data from files in CSV or fixed text format and generates a new file with the converted data in either JSON, SQL INSERT statements, HTML or CSV formats.

In Portuguese:

TxtXtrator é uma classe destinada a extração de dados de arquivos TXT (largura fixa ou CSV) e a sua conversão em Array, JSON, CSV, SQL ou HTML.


PHP DB Object

Package:
PHP DB Object
Summary:
Manipulate objects as arrays
Groups:
Data types, PHP 5
Author:
wmchris
Description:
This class can manipulate its objects as arrays.

It implements several operations that make objects work like arrays.

Currently it can convert an array to an object of the class and vice-versa, serialize the object to JSON format, count the number of elements, sort the object elements, merge the elements of two objects, search for elements that match a condition, return a limited range of object elements, create a copy of the object, etc..


Last.fm Mood

Package:
Last.fm Mood
Summary:
Search for artist or tracks in Last.fm
Groups:
Audio, PHP 5, Web services
Author:
Dan Moffat
Description:
This class can be used to search for artist or tracks in Last.fm.

It can sent HTTP requests to the Last.fm Web services API server to perform a search for a top rated artist or a top rated track with a given tag.

The class can return the URL of the artist track or HTML for a button link to that URL.


ontoProdukt

Package:
ontoProdukt
Summary:
Generate product feeds in XML formats
Groups:
E-Commerce, XML
Author:
Vaclav Mares
Description:
This package can be used to generate product feeds in XML formats.

It can create a new product feed or import an existing feed from a given URL in either XML product feed, RSS 2.0 or RDF product description formats.

The product feed can be generated in the same formats that can be imported.


IP 2 Country IP2C

ip2c screen
Package:
IP 2 Country IP2C
Summary:
Get country of a given IP address from CSV files
Groups:
Geography, Networking, PHP 5
Author:
siarka
Description:
This class can be used to get country of a given IP address from CSV files.

It takes a given IP address and looks up the country to IP addresses database file in CSV format to determine the IP address geographic location.

The class returns the IP address country name and country codes with 2 or 3 letters.


Code Graph

Result of load parse_gen.php into parse_gen.php
Package:
Code Graph
Summary:
Generate call graphs of PHP code with GraphViz
Groups:
Language, Utilities and Tools
Author:
Colin McKinnon
Description:
This packages can be used to generate call graphs of PHP code with GraphViz.

There is one class that can generate diagrams in the GraphViz DOT format from a list of called or uncalled functions.

Additional functions can parse given PHP scripts to extract the list of functions in the code to generate the call tree graph.


Powered by Gewgley