Category Archives: Classes

Image Uploader and Resizer

Package:
Image Uploader and Resizer
Summary:
Process and resize uploaded image files
Groups:
Files and Folders, Graphics, PHP 5
Author:
Feighen Oosterbroek
Description:
This class can be used to process and resize uploaded image files.

It can take an uploaded file and move it to given directory. If the directory does not exist, the class creates it and sets its permissions to make it accessible.

The class can also create a thumbnail files if the file is a GIF, JPEG or PNG image.


Persist Class

Package:
Persist Class
Summary:
Stores objects in relational databases
Groups:
Databases, Design Patterns, PHP 5
Author:
Zsolt Herpai
Description:
This package can be used to store and get objects from relational databases.

The package contains DBConnection class that provides access to relational databases, establishing connections, executing queries and retrieving results. The current version contains implementations for MySQL and Oracle (support for other DB systems can be added by following the attached implementation guide)

The package also contains PersistClass that uses the DBConnection to store objects in relational database tables.


Wapple Architect Mobilization

An example of the results of WAPL
Package:
Wapple Architect Mobilization
Summary:
Create pages adapted to all mobile devices
Groups:
PHP 5, Web services, Wireless and Mobile
Author:
Rich Gubby
Description:
This package can be used to create pages optimized to all mobile devices.

It can access to Wapple.net Web services API to pass the mobile device identification and retrieve information necessary to render pages adapted for the device, like the device screen size, choice of correct markup and the device capabilities.

A builder class can be used to generate the page definition in the WAPL XML format that is passed to the Web service, which renders the page adapted to the given mobile device.


mobiled

Nokia N95 8GB detection example
Package:
mobiled
Summary:
Detect mobile device types checking their browser
Groups:
PHP 5, Wireless and Mobile
Author:
Filip Oscadal
Description:
This class can be used to detect mobile device types by checking their browser identification.

It can check the user agent HTTP header sent by a mobile device browser and extract the identifier to determine the browser type.


phphilter

Package:
phphilter
Summary:
Grant access to remote users using iptables
Groups:
HTTP, PHP 5, Security, Unix
Author:
giuseppe lucarelli
Description:
This class can be used to grant access to remote users using iptables.

It can execute the iptables command on Linux to verify whether the current user IP address was authorized to access another server with a given IP and port number.

The class may grant access to the user IP address and make the necessary alter iptables configuration if the user provides a valid user name and password via HTTP authentication.


Debug_Logging

Package:
Debug_Logging
Summary:
Output debug information to the page or a log file
Groups:
Debug, Logging, PHP 5
Author:
Gerhard
Description:
This class can be used to output debug information to the page or a log file.

It can output several types of event activity and show the current date and time, the user session, the calling function and line, as well a custom message.

The debug output can be displayed in the current page, or outputted to a file .

The size of the log files may be limited. When a log file exceeds the limit, the class can rotate the logs by renaming the current log file and creating a new one.


Closure Table

Package:
Closure Table
Summary:
Manage transitive closure tables stored in MySQL
Groups:
Data types, Databases, PHP 5
Author:
Tom Schaefer
Description:
This package can be used to manage transitive closure tables (TCT) stored in a MySQL database.

It can create MySQL database tables that will store information about hierarchies of nodes stored in other database tables.

Different classes can organize nodes hierarchically by weight and depth. They can insert, delete, retrieve and sort nodes.


distance class

Package:
distance class
Summary:
Calculate the air distance between two cities
Groups:
Geography, PHP 5, Web services
Author:
Thomas Jakober
Description:
This class can be used to calculate the air distance between two cities.

It calls the Google Maps API to obtain the latitude and longitude of the cities given their names.

The class uses the retrieved locations to compute the air distance between the cities in either kilometers, miles or sea miles.


pClosure

Package:
pClosure
Summary:
Create closure functions for any PHP 5 version
Groups:
Data types, Language, PHP 5
Author:
Sam Shull
Description:
This class can be used to create closure functions that work with any PHP 5 version.

It uses a lambda function to enclose the closure object for simple execution.

Additionally, supports scalar type hinting and the ability to change execution scope of the closure object using a supported interface.


Yahoo

Package:
Yahoo
Summary:
Check the online status of an Yahoo messenger user
Groups:
Chat, Web services
Author:
Alfredo Sanchez
Description:
This class can be used to check the online status of an Yahoo messenger user.

It accesses the Yahoo online status Web server to check the status of a given user.

The class parses the response and returns true or false depending on whether the given user is online.


Powered by Gewgley