Category Archives: Classes

DB Backup Class

Package:
DB Backup Class
Summary:
Generate a MySQL database backup using PDO
Groups:
Databases, PHP 5, Systems administration
Author:
Raul
Description:
This class can be used to generate a MySQL database backup using PDO.

It can query the structure of a given MySQL database and generate SQL statements to recreate and insert the records of the tables in the database.

The resulting SQL statements are returned as a single string that can be served for download or stored in a file.


Simple GMap API

Package:
Simple GMap API
Summary:
Display maps and get location with Google Maps API
Groups:
Geography, PHP 5, Web services
Author:
Heiko Holtkamp
Description:
This package can be used to display maps in Web pages using the Google Maps API V3.

It can generate HTML with JavaScript can display maps on Web pages using the Google Maps API. The maps may show additional features, such as markers, information windows, circles, rectangles and navigation controls.

A separate class can also use the GeoCode support of the Google Maps Web services API to determine the geographic coordinates of a location, or determine the address of a location given its coordinates.


Royal Mail Postal Barcode

Package:
Royal Mail Postal Barcode
Summary:
Generate barcode images for use with UK mail
Groups:
Graphics, PHP 5
Author:
Mathew Hooper
Description:
This class can be used to Generate barcode images for use with Royal Postal Mail.

It takes a postal code and a DPS code and generates an image with the corresponding location barcode.

The class stores the generated GD image resource handle in a class variable so it can be used to render and serve the image in any formated supported by the PHP GD extension.


Geo Locator

Package:
Geo Locator
Summary:
Determine the address or coordinates of location
Groups:
Geography, PHP 5, Web services
Author:
Ondrej Podolinsky
Description:
This package can be used to determine the address or coordinates of location.

It can send HTTP requests to the Web services API of Google Maps or Yahoo Maps to either return the geographic coordinates of a given address or determine the address of given geographic coordinates.


XML-2-Array

Package:
XML-2-Array
Summary:
Parse a XML document and build an array structure
Groups:
PHP 5, XML
Author:
Raj Kumar Trivedi
Description:
This class can be used to parse a XML document and build an array structure.

It takes a given XML file and parses it.

The class builds a nested array that contains the structure of tags and data of the XML document.


System monitor and Throttle

Output the throttle heavy program example script
Package:
System monitor and Throttle
Summary:
Monitor system usage and throttle heavy programs
Groups:
Files and Folders, PHP 5, System information
Author:
Manuel Lemos
Description:
This class can be used to monitor the system usage and throttle heavy programs.

It can check if the CPU load is too high and whether the available disk space on certain partition is too low.

The class can also execute a given program and suspend its execution when the system resources usage is excessive. Then it can wait and resume the program execution when the resources usage lowers to acceptable levels again.

It can be used to throttle the execution of heavy programs, so other programs that have greater priority can run faster.


Simple Date

Package:
Simple Date
Summary:
Manipulate and convert dates to different formats
Groups:
PHP 5, Time and Date
Author:
tom larsen
Description:
This class can be used to manipulate and convert dates to different formats.

It can add a time interval to a given date or compute the difference of time between two dates.

The class can also convert dates between many formats.


Pagination with density

Package:
Pagination with density
Summary:
Display links to browse listings split in pages
Groups:
HTML, PHP 5
Author:
vimal
Description:
This class can be used to display links to browse listings split in pages.

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

The class generates HTML links to go to the first, last and intermediate pages of the listing.


Simple Time

Package:
Simple Time
Summary:
Calculate the difference and addition of times
Groups:
PHP 5, Time and Date
Author:
Abdellah Ben Rahmoun
Description:
This class can be used to calculate the difference and addition of times.

It can take a time and add a given period interval.

The class can also calculate the difference between two times.

Additionally it can determine the time zone name by the time offset relative to UTC and also the local time zone.


Powered by Gewgley