Tag Archiv: classes

Super Global Secure Class

Package:
Super Global Secure Class
Summary:
Filter request values to avoid insecure values
Groups:
HTTP, Security
Author:
Bendikt Martin Myklebust
Description:
This class can be used to filter request values to avoid eventually insecure values.

It can traverse the HTTP POST and GET request variables and perform several operations to filter their values.

Currently it strips slashes, encode HTML entities, replace script tags and escape values for use in MySQL database queries.


setTimeout and setInterval

Package:
setTimeout and setInterval
Summary:
Call a function after a period of time
Groups:
Language, PHP 5, Time and Date
Author:
Sam Shull
Description:
This class can be used to make PHP call a function after a period of time.

It can register one or more callback functions that should be called after a given timeout value or every time after a given period of time elapses.

The class registers a single callback function to handle PHP tick calls. That function takes care of calling all registered timer callback functions.


LLRB Tree

Package:
LLRB Tree
Summary:
Manage a balanced tree of text word nodes
Groups:
Data types, PHP 5
Author:
Jay Wheeler
Description:
This package can be used to manage a balanced tree of text word nodes.

It implements a left leaning Red-Black binary search tree that uses Node objects instead of arrays to implement the tree data structures.

It can perform operations on nodes of text words like insert, search, delete and traverse the tree, maintaining a balanced and correctly formed tree after all operations.


Image2HTML

ScreenShot of the Image2HTML demo
Package:
Image2HTML
Summary:
Convert images into colored HTML text
Groups:
Graphics, HTML
Author:
Reza Salehi
Description:
This class can be used to convert images into colored HTML text.

It can open an image in JPEG format and traverse its pixels to generate HTML that renders the image as a sequence of colored characters of 1 pixel of width and height.

The generated HTML can be saved to a given file.


GMT Converter

Package:
GMT Converter
Summary:
Convert time between zones defined in a database
Groups:
Databases, Time and Date
Author:
Abdul Kader
Description:
This class can be used to Convert time between zones defined in a MySQL database.

It can lookup in a MySQL database table for time zone offsets relative to GMT given the zone identifier.

The class can convert date and times between zones based on offsets retrieved from the database.


File Copy

Package:
File Copy
Summary:
Copy multiple files preserving the directories
Groups:
Files and Folders, HTML
Author:
Nguyen Hoang
Description:
This package can be used to copy multiple files preserving the directories.

It can display a form to let the user choose the source and target directories of the files to be copies.

The main class can copy the selected files to a given destination directory, recreating sub-directories if necessary to preserve the relative paths of the source files.

Optionally it can remove comments and obfuscate the PHP files that are being copied using the PHP Trasher class by Setec Astronomy.


Logger class to write all at once

Package:
Logger class to write all at once
Summary:
Log activity to files buffering the messages
Groups:
Files and Folders, Logging, PHP 5
Author:
Sudhir Chauhan
Description:
This class can be used to log activity to files buffering the messages.

It can log one or more activity messages to a log file.

The messages are first stored in class private array variable that works as a buffer.

When the object is destroyed, eventually at the end of the script, the messages are flushed to the log file all at once.


Get Image Color

slice
Package:
Get Image Color
Summary:
Get the most used colors in an image
Groups:
Graphics, PHP 5
Author:
Kalpesh Gamit
Description:
This class can be used to get the most used colors in an image.

It can open an image file in JPEG format and traverse its pixels to find which are the most used colors. It can skip a given number of analyzed pixels according to the granularity parameter.

The class returns an array of top most used colors up to a given limit of number or colors. The colors are returned in RGB hexadecimal format.


shaCrypt

Package:
shaCrypt
Summary:
Encrypt and decrypt data using SHA1 hashes of keys
Groups:
Cryptography, PHP 5
Author:
Mark Holtzhausen
Description:
This class can be used to encrypt and decrypt data using SHA1 hashes of keys.

It takes a string of data and applies several functions to scramble the data. Then it uses an SHA1 has of the key to encrypt the scrambled data by using the XOR function.

The class can also do the opposite, i.e. apply the SHA1 hash of the key to decrypt the encrypted data. Then it unscrambles the data using functions that invert the result of the original data scrambling.


Binary XML

Package:
Binary XML
Summary:
Generate and parse XML documents with binary files
Groups:
Files and Folders, PHP 5, XML
Author:
Sudhir Chauhan
Description:
This class can be used to generate and parse XML documents with binary files.

It can take a list of files and generate a XML document that includes the data of files using base64 encoding.

The class can also do the opposite, i.e. parse a previously generated XML document and recreate files contained in the document.


Powered by Gewgley