Category Archives: Classes

Vigenère cypher

Package:
Vigenère cypher
Summary:
Encrypt and decrypt text using the Vigenère cypher
Groups:
Cryptography, PHP 5
Author:
Nicola Mustone
Description:
This class can be used to encrypt and decrypt text using the Vigenère cypher.

It takes a string of text and encrypt its characters with a given key applying the Vigenère cypher.

The class can also do the opposite, i.e. take a string previously encrypted by the class and decrypt it using with the original key.


MSingleton

Package:
MSingleton
Summary:
Manage singleton objects
Groups:
Design Patterns, PHP 5
Author:
Artem
Description:
This class can be used to manage singleton objects.

It can assure that only one object of the class exists by storing the first instance of the class in a static variable.

Applications should create sub-classes of this class to manage singletons of different classes.


Weather.com API Class

Package:
Weather.com API Class
Summary:
Retrieve weather conditions using Weather.com API
Groups:
PHP 5, Physics, Web services
Author:
Rafael Santiago
Description:
This class can be used to retrieve weather conditions using Weather.com API.

It can send HTTP requests to the Weather.com Web services API Web server to retrieve the current weather conditions for a given location.

Currently the class retrieves the conditions description and image, temperature, humidity, ultraviolet rays level, wind speed and direction, sunrise and sunset times.


Simple User

Package:
Simple User
Summary:
Register and manage user accounts in MySQL records
Groups:
Databases, HTML, PHP 5, User Management
Author:
Bob Kennedy
Description:
This package can be used to register and manage user accounts in MySQL records.

There is one class that can create the necessary MySQL tables and records to store user records starting with the administrator account.

Another class can perform several types of operations to manipulate the user accounts like displaying and processing forms to register new users, login and edit user profile options.

It can also check if a given user with an e-mail exists, delete accounts, retrieve the information of a given user, get the list of all users, check if an user is logged, check if the logged user is administrator, end the logged user session.


Country list

Package:
Country list
Summary:
Retrieve country lists for select form inputs
Groups:
Geography, HTML, PHP 5
Author:
mahmood
Description:
This class can be used to retrieve country lists for select form inputs.

It can return the country name of a given country code, as well get the country code associated to a given country name.

The class can also generate HTML for select form input to let users choose a country from the list of all countries. It can also mark as selected a country given its code.


crXml

Package:
crXml
Summary:
Manipulate XML documents as arrays
Groups:
Data types, PHP 5, XML
Author:
Sandeep.C.R
Description:
This class can be used to manipulate XML documents as arrays.

It can create a new XML document or load an existing document from a string and allow applications to manipulate using regular array functions.

Each array entry maps to XML DOM document element. Accessing array elements translate to accessing to XML tag children elements.


crXml

Package:
crXml
Summary:
Manipulate XML documents as php Object
Groups:
Data types, PHP 5, XML
Author:
Sandeep.C.R
Description:
This class can be used to create, parse and manipulate XML documents using a combination of object and array notations.

It can create a new XML document or load an existing document from a string and allow applications to manipulate the xml using PHPs object and array notations.

Each crXml objects property maps to another crXml object(child) that wraps the corresponding XML DOM child document element. Accessing the crXml object as array using keys translate to accessing the attributes with the key name of corresponding XML node.

This class also supports different types of Namespaced nodes(prefixed or non-prefixed), default namespaces etc.


Very Simple Diff

Package:
Very Simple Diff
Summary:
Compare two strings and return the differences
Groups:
Text processing
Author:
Tom Parkison
Description:
This class can be used to compare two strings and return the differences.

It splits two strings in lines and compare the lines to determine the differences.

The class returns two arrays that tell which lines would need to be added or removed to turn the first string into the second string.


WHM API

Package:
WHM API
Summary:
Manipulate WHM hosting accounts
Groups:
Hosting, PHP 5, Web services
Author:
Davood Jafari
Description:
This class can be used to manipulate WHM hosting accounts.

It can send HTTP requests to a WHM installation Web services API to perform several types of hosting account manipulation.

Currently it can create, delete, suspend, unsuspend and change the password of an account. It can also list or search accounts, change the bandwidth limits, list or manipulate the account installed packages, get the account server load average and host name.


GTK Popup Menu App

screenshot
Package:
GTK Popup Menu App
Summary:
Create GTK popup menus bound to class functions
Groups:
GUI, PHP 5
Author:
Luis Martinez Ulloa
Description:
This class can be used to create GTK popup menus bound to class functions.

It can retrieve the list of functions of the class and create a popup menu with entries that are handled by the class functions with names which do not start by _ nor are named run.

The menu entry titles are taken from the respective class names after replacing _ characters by spaces.

Applications should extend this class to define their own popup menus from their class function names.


Powered by Gewgley