Category Archives: Classes

HTML fixer

Package:
HTML fixer
Summary:
Fix HTML documents
Groups:
HTML, PHP 5
Author:
giulio pons
Description:
This class can be used to fix HTML documents.

It can process an HTML document passed as a string and perform several operations to fix the HTML. Currently it can:

- Delete closed tags without their opening tag
- Close open tags without a close tag
- Fix incorrectly nested tags
- Fix incorrectly quoted attributes
- Merge multiple styles attributes in the same tag
- Remove comments
- Remove empty tags


Simple timer class

Package:
Simple timer class
Summary:
Measure the time that elapses
Groups:
PHP 5, Time and Date
Author:
Jay Gilford
Description:
This class can be used to measure the time that elapses.

It can start a timer and stop it in a different moment to measure the time that elapsed between the two moments.

The class can also pause and the resume the time measurement in any moment.


Profanity Filter

Package:
Profanity Filter
Summary:
Determine if a text contains many obscene words
Groups:
PHP 5, Text processing
Author:
Mike Block
Description:
This class can be used to determine if a text contains too many obscene words.

It parses a given text and checks if it uses words that are part of an obscene words list. It can also look for variants of the words and plural forms of the listed English words.

The class returns a score number that may be used by applications to take decisions on whether the text is acceptable.


Facebook Chat

Package:
Facebook Chat
Summary:
Send chat messages to friends in Facebook
Groups:
Chat, PHP 5, Social Networking, Web services
Author:
De Rosa Luigi
Description:
This class can be used to send chat messages to friends in Facebook.

It can send a request authenticate on behalf of a given Facebook user.

The class can retrieve the list of friends and send a chat message to a friend that is online.


Authenticator_ciacob

Package:
Authenticator_ciacob
Summary:
Register and authenticate users
Groups:
Databases, PHP 5, User Management
Author:
Claudius Tiberiu Iacob
Description:
This package can be used to register and authenticate users with records in a database.

It can register new users, confirm user registrations, authenticate existing users and retrieve user password to send by e-mail as reminders.

The user records are stored in database. The queries to perform each user record database access are defined in a XML configuration file.

Features list:
# Open or closed registration, via master password;
# User role support;
# Live authentication (changing session unique id from one request to another);
# Password recovery OR reset support;
# Hack prevention built-in system:
* logs user out when obsolete session id is used;
* logs user out if IP address changes from one request to another;
* logs user out when session lifetime times out;
* auto-locks user on too many failed login attempts; locks are IP-based and can be reset by master.
# Easy to configure, via external XML files (provided by ParamsProxy package, see dependencies);
# SQL injections proof, thanks to built-in database traffic encoding/decoding mechanism (provided by DbProxy package, see dependencies).


nabiBust

Package:
nabiBust
Summary:
Obfuscate PHP code scripts
Groups:
Code Generation, PHP 5, Utilities and Tools
Author:
hwrProgs
Description:
This package can be used to obfuscate PHP code scripts.

It can process a set of PHP scripts and generate equivalent ones obfuscated by removing comments and whitespace, renaming class names, constants and variables to obfuscated names, as well the references to those names.

The resulting processed PHP scripts are stored in a targeted directory.


Gettable

Package:
Gettable
Summary:
Make accessible private and protected variables
Groups:
Data types, PHP 5
Author:
Chris Lam
Description:
This class can be used to make accessible private and protected variables.

It is an abstract class that provides access to retrieve values of private and protected variables while preventing to change those variables values.

Variables with names that start with an underscore still cannot be accessed from outside the class.


View HTML

Package:
View HTML
Summary:
Generate HTML documents programmatically
Groups:
HTML, PHP 5
Author:
Elyess ZOUAGHI
Description:
This class can be used to generate HTML documents programmatically.

It can add tags to a document using fluent interface calls that return the class object, so the calls can be nested.

The class provides functions to add most types of HTML tags.

The class returns the composed document as a string. The generated HTML can be made XHTML compliant.


Script Alone

Package:
Script Alone
Summary:
Manage the execution of PHP daemon scripts
Groups:
Console, PHP 5, Systems administration
Author:
Barbushin Sergey
Description:
This class can be used to manage the execution of PHP daemon scripts.

It can store in control file the state of the currently running script.

The class can check that file to see if an instance of the script is already running to prevent that more than one instance of the script is being executed.

It can also check if another control file exists as a flag indicating that another script instructed the current instance to stop and exit.


Powered by Gewgley