Tag Archiv: classes

text2timestamp

Package:
text2timestamp
Summary:
Parses and extract times from text
Groups:
PHP 5, Text processing, Time and Date
Author:
Igor Shevchuk
Description:
This class can be used to parses and extract times of English text.

It takes a text string to analyze and recognizes time based expressions. Currently it recognizes about 20 time format variations.

The class extracts the time mentioned in the text as well the remaining action text that is related to the time expression.

Here few examples
1. 6pm call mom
2. 6:30pm call mom
3. 6:19p call mom
4. 6p call mom
5. 6am call mom
6. 6a call mom
7. 2 hours call mom
8. 2 hrs call mom
9. 30 minutes call mom
10. 30 mins call mom
11. today at 6pm call mom – the next 6pm, if 6pm has already passed.
12. Saturday 6pm call mom – The next Saturday, if Saturday has already passed
13. tomorrow at 6pm – calculates tomorrow regardless if it’s after 6pm or not.


BBCode Parser Class

Package:
BBCode Parser Class
Summary:
Parse BBCode and convert it into HTML
Groups:
HTML, PHP 5, Text processing
Author:
Ramunas
Description:
This class can be used to parse BBCode and convert it into HTML.

It searches and replaces BBCode tags in a given text string with equivalent HTML tags.

The class not only supports block and inline text formatting, but also supports embedding YoutTube and Google Video clips.


Search by Relevance

Package:
Search by Relevance
Summary:
Sort arrays or MySQL searches by relevance
Groups:
Data types, Databases, Searching
Author:
Carlson A. Soares
Description:
This class can be used to sort arrays or MySQL searches by relevance.

It can search for a string in an array of a MySQL query result.

The class returns an array of search result entries that is sorted by a criteria of relevance implemented within the class.

A number representing the relevance is returned within the sorted search results.


Sortable Table

Package:
Sortable Table
Summary:
Display MySQL query results in a sortable table
Groups:
Databases, HTML, PHP 5
Author:
sibiraj.p.r
Description:
This class can be used to display MySQL query results in a sortable table.

It executes a given MySQL query and generates HTML and JavaScript to display the query results in an HTML table.

The table can be sorted dynamically using a jQuery library table sorter plug-in.


Color Scheme Creator

Styled buttons and Windows/Boxes
Package:
Color Scheme Creator
Summary:
Create a color scheme from a base color
Groups:
Graphics, HTML
Author:
A-Vision webdesign
Description:
This class can be used to create a color scheme from a base color.

It takes a base color and creates a list of derived colors that consists of several lighter and darker variants of the base color.

The class returns an associative array with generated color values in RGB with entry names prefixed with the original color name.

The array also returns HTML image tags to display the colors in a Web page using transparent images with the background color set to the generated color values.


Verify e-mail

Package:
Verify e-mail
Summary:
Check if an e-mail is valid using SMTP
Groups:
Email, PHP 5, Validation
Author:
Granin
Description:
This class can be used to check if an e-mail is valid using the SMTP protocol.

It can connect to an SMTP server defined by the MX records of the domain of the address to validate.

The class simulates the delivery of a message to see if the given recipient address is accepted as valid.


AntiBot an alternative to CAPTCHA

Samples of outputed data
Package:
AntiBot an alternative to CAPTCHA
Summary:
Perform CAPTCHA validation asking questions
Groups:
Security, Validation
Author:
Andre Roc
Description:
This class can be used to perform CAPTCHA validation asking questions to the user.

It can generate a question from a list of few possibilities picking random values of colors or numbers.

The correct answer is stored in a session variable for subsequent verification.


Page Lister

Package:
Page Lister
Summary:
Split listings of entries in multiple pages
Groups:
HTML, PHP 5
Author:
Kjetil Hårtveit
Description:
This class can be used to split listings of entries in multiple pages.

It takes as parameters the total number of entries in a listing, the number of the current page and the number of entries to show per page.

The class returns an array with details of a list of links to browse the listing pages that include the link URL, label and the number of the page.


Multidim

Package:
Multidim
Summary:
Manipulate multidimensional arrays in MySQL tables
Groups:
Data types, Databases, PHP 5
Author:
troy knapp
Description:
Have you ever wished you could deal with tables instead of multidimensional arrays, but didn't want the overhead associated with creating tables, populating them etc? This class is meant to be a simple alternative to using large associative data arrays. Elements are just as easy to add into temporary tables as they are to put into arrays, they are just as easy to get back out again... and MUCH easier to unset, filter and sort.

This class works by using an "array like" syntax (so it's easy to remember) and creates MySQL tables in memory. Basic functionality that you would expect to have when dealing with arrays is provided (in fact, you'll notice a striking similarity to what the methods "md_push" and "md_asort" do and their cousins do), but it leverages MySQL's ability to sort filter and delete etc. to simplify dealing with complex arrays. It also provides a wrapper method that allows the user to run their own SQL queries on the table (without having to worry about database connections or what the temporary table's name is).


Powered by Gewgley