Category Archives: Classes

Singleton Registry

Package:
Singleton Registry
Summary:
Register key values in a singleton object
Groups:
Design Patterns, PHP 5
Author:
Jason Hopkins
Description:
This class can be used to register key values in a singleton object.

It creates or reuse a singleton object by storing it in a class static variable.

The singleton object is used to store, retrieve and delete keys associated to given values.


Validation Class

Package:
Validation Class
Summary:
Validate submitted form request values
Groups:
Hatem, PHP 5, Validation
Author:
Hatem Mohamed
Description:
This class can be used to validate submitted form request values.

It can take an array of values for validation eventually from $_POST or $_GET arrays.

The class can validate each entry in the array according to previously added rules.

Currently it supports rules to check if a value is set, is a valid IP address, is valid number, is a string with a length range, is valid URL, or is valid e-mail address.

The class can also sanitize the passed values and return the sanitized results in an array.


CSV list

Package:
CSV list
Summary:
Manipulate a list of entries in a string of separa
Groups:
PHP 5, Text processing
Author:
Gary Tay
Description:
This class can be used to manipulate a list of entries in a string of separated values.

It can perform several operations on the list of values string like adding a set of values, importing the list from a compressed file, export the list, add, remove and update entries, search for values, etc..


Log class

Package:
Log class
Summary:
Write log messages to files
Groups:
Logging, PHP 5
Author:
Hatem Mohamed
Description:
This class can be used to write log messages to files.

It can append given log messages to lines of files.

The log lines include the current time and optionally the name of the file and line number of the code script to which log message is related.


My Session Manager

Package:
My Session Manager
Summary:
Manipulate session variables with encrypted values
Groups:
Cryptography, PHP 5, User Management
Author:
Antoine Aflalo
Description:
This package can be used to manipulate session variables with encrypted values.

It can wrap the access to session variables by encrypting the values before storing and decrypting the after retrieving the values.

The session class can also create or delete a session variable and create or delete an associated cookie.


HTML Select Element Class

Package:
HTML Select Element Class
Summary:
Generate HTML select elements from value arrays
Groups:
HTML
Author:
Matthew Praetzel
Description:
This class can be used to generate HTML select elements from value arrays.

It can take an array of values and generate HTML to define form select inputs in several ways.

Currently it can generate simple select inputs from associative arrays, multiple select inputs, select inputs with nested option group sub-menus from multi-dimensional arrays, select with number options, etc..


Encryption With PHP

Package:
Encryption With PHP
Summary:
Encrypt and decrypt data using Mcrypt
Groups:
Cryptography, PHP 5
Author:
Hatem Mohamed
Description:
This class can be used to encrypt and decrypt data using Mcrypt.

It can take a string of data and encrypt with a given key.

The class can also do the opposite, i.e. recover the original data decrypting it with the same key.


PHP smart client loader

Package:
PHP smart client loader
Summary:
Compact CSS and JavaScript served by HTML pages
Groups:
Cache, Compression, HTML, PHP 5
Author:
mohamed Hamed
Description:
This class can be used to compact CSS and JavaScript served by HTML pages.

It can compact CSS styles by removing comments and whitespaces. It can also do the same for JavaScript calling the JSMin class.

The class can also combine multiple CSS files or multiple JavaScript file into a single file.

The resulting CSS or JavaScript can be cached on the server side files.

The class can generate the necessary HTML to use the resulting CSS and JavaScript in the current page.


Powered by Gewgley