Monthly Archiv: August, 2009

RedBeanPHP

RedBeanPHP is an ORM layer that writes its own tables and columns on the fly. This means you don't need schema files, config files, XML files, YAML files or anything else. The library just infers the database from the code you write...

Secure HTML parser and filter

Screenshot of the Web user interface to test the secure HTML filter class
Package:
Secure HTML parser and filter
Summary:
Parse and filter insecure HTML tags and CSS styles
Groups:
HTML, Security
Author:
Manuel Lemos
Description:
This package can be used to parse and filter insecure HTML tags and CSS styles.

It comes with a general purpose markup parser class that can parse any type of markup documents like HTML, XML and DTD files.

There are several other classes that can be chained together to retrieve the document token elements returned by the main markup parser class and filter the document elements in an useful way.

The markup validator filter class validates a document against a DTD, eventually removing invalid tags and attributes.

The safe HTML filter class uses several white lists to process HTML tags and data returned by the markup validator class and discards potentially harmful HTML tags and CSS that could be used to perform cross-site scripting (XSS) or cross-site request forgery (CSRF) security attacks.

The filtered HTML tokens can be reassembled to return a well-formed and secure HTML document.

The HTML links filter class can extract the links contained in an HTML document.

The DTD parser and CSS parser are utility classes used by the other classes.


Analizador Montos

Package:
Analizador Montos
Summary:
Spell a money amount using Spanish words
Groups:
Finances, Text processing
Author:
Julio G.
Description:
This class can be used to spell a money amount using Spanish words.

It can take a number of a given money amount of up to one thousand millions and returns words that spell that amount in Spanish.

The class supports spelling amounts in Pesetas, Pesos and Dollars.

In Spanish:
Esta clase de uso sencillo permite convertir montos numericos a montos en letra.


PseudoGen

Package:
PseudoGen
Summary:
Generate a pseudo random string
Groups:
Algorithms, PHP 5, Text processing
Author:
Alex I.
Description:
This class can be used to generate a pseudo random string.

It generates a sequence of pseudo-random character using a matrix pre-defined randomized set of characters.

The resulting random string can be used as new matrix of randomized characters.


Magic Consistent Hash Class

Package:
Magic Consistent Hash Class
Summary:
Get an hash for a string from an array of values
Groups:
Cryptography, PHP 5
Author:
Mudessir Medgitov
Description:
This class can be used to get an hash for a string from an array of values.

It takes as parameter an array of hash values.

The class takes a string as argument and returns the same entry from the hash array values for each string argument.


PersistClass

PersistClass for PHP PersistClass is a set of PHP classes providing access to relational databases. Attempts to focus on simplicity and convenience by eliminating the need of boiler-plate, unmeaningful code. Main features - establish database connections (MySQL, Oracle, more to come) - execute SQL queries - iterate query results - convenience methods (read single row or value, etc..) - data escaping (against SQL injection or HTML escaping for outputs) - transaction handling - strict error handling - no more undetected errors - object persistence - storing and retrieving PHP objects in db tables - possibility to add support for not yet supported DBs

Ajax Treeview class

Package:
Ajax Treeview class
Summary:
Display a tree view that uses AJAX
Groups:
AJAX, HTML, PHP 5
Author:
Thomas Jakober
Description:
This class can be used to display a tree view that uses AJAX.

The TreeView Class is designed for larger trees , which cannot be loaded completely at once. Only one branch is sent by an AJAX request. The tree and its icons are controlled by a css file and its using a self referencing hierarchical MySql table. A user javascript function can be passed to act at a branch click.


OOCSS

Package:
OOCSS
Summary:
Template engine for CSS style sheet files
Groups:
Templates
Author:
Corey A Hart
Description:
This class implements a template engine for CSS style sheet files.

It reads a CSS style sheet template file that may have definitions of styles assigned to variables. The variables may be used in the definition of other styles.

The class expands the definition of all variables and stores the processed CSS style sheet in a cache file.

OOCSS creates a new way to write CSS files in a new Object style fashion. Using Parent/Child relationships and predefined variables, you will be able to produce rapid CSS that is not only easier to maintain and read, is more intuitive as well.


[Free] New BASIC Compiler: Write a Computer Program in the BASIC Programming Language

Are you thinking of writing a computer program in the BASIC programming language? Check out the newest item to be added to the Free BASIC Compilers and Interpreters page. This one is a BASIC to C converter; that is, it translates BASIC programs to the C language and you can use a C compiler to create the executable program.

(Note: if you prefer not to go through that 2-step process, there are 26 other BASIC compilers on that page for Windows, Mac OS X, Linux, etc, including Microsoft Visual Basic. And they are all free, and perfectly legal. So check them out.)

Powered by Gewgley