Tag Archiv: classes

Database Abstraction

Package:
Database Abstraction
Summary:
Access different types of SQL database
Groups:
Databases, PHP 5
Author:
Nitesh Apte
Description:
This package implements a database abstraction layer that provides the same interface to access different types of SQL databases.

There is a factory class that can create a instance of database access class specialized in access one of the several supported types of SQL databases.

Each database access class extends a configuration class and implements the same interface that provides functionality for establishing database connections, manage transactions, execute SQL queries, retrieve query results into arrays or objects and retrieve the number of affected rows or the last inserted row identifier.

Currently it provides classes for accessing MySQL, PostgreSQL and Oracle.


Simple DBase

Package:
Simple DBase
Summary:
Simple MySQL database access wrapper
Groups:
Databases, PHP 5
Author:
Daniel Vasic
Description:
This class is a simple MySQL database access wrapper.

It can establish connections to a MySQL database server, select a database to access, execute SQL queries, return the number of affected table rows, return the number of result rows and retrieve the query result rows in arrays.


INI Parser

Package:
INI Parser
Summary:
Parse INI files without using PHP built-in support
Groups:
Configuration, Files and Folders
Author:
Maxim
Description:
This class can be used to parse INI files without using PHP built-in support.

It can read an INI file line by line and get the setting values of each configuration section.

The parse results are returned in a bi-dimensional associative array to make it easier to access settings by section and option name.


Blog Criptkiller

Package:
Blog Criptkiller
Summary:
Create blog posts stored in text files
Groups:
Blogs, PHP 5
Author:
Jonathan Alexey
Description:
This class can be used to create blog posts which are stored in text files.

It can create blog posts that are stored in a text file, removing all line breaks of the blog post HTML so each post only occupies line in the blog file.

The class also removes dangerous tags that can be used to perform cross-site scripting attacks.

It can also extract blog post data from the blog file.


Events Calendar

Package:
Events Calendar
Summary:
Display calendars marked with special event days
Groups:
HTML, PHP 5, Time and Date
Author:
Ron Darby
Description:
This class can be used to display calendars marked with special event days.

It can generate an HTML table that displays the days of a given month.

The calendar may denote certain dates of special events that appear as links.

The presentation details of the different calendar elements may be configured with CSS styles.


PHP jQuery Toggler

Package:
PHP jQuery Toggler
Summary:
Show and hide of a page element using jQuery
Groups:
HTML, PHP 5
Author:
Daniele
Description:
This class can be used to show and hide of a page element using the jQuery library.

It can generate HTML with JavaScript code that uses the jQuery library to make a given page element show or hide using slide effects when the user clicks in a button.

The toggle button may use a given text or an image.


File-Upload

Package:
File-Upload
Summary:
Validate and process uploaded files
Groups:
Files and Folders, HTTP, PHP 5
Author:
Ben Cooling
Description:
This class can be used to validate and process uploaded files.

It can take an uploaded file and check the file name extension in a list of allowed and disallowed extensions.

The class can copy the file to a given directory and have an unique name.


Pop under class

Package:
Pop under class
Summary:
Display interstitial advertising
Groups:
HTML, PHP 5
Author:
Arturs Sosins
Description:
This class can be used to display interstitial advertising.

It generates HTML and JavaScript that makes an advertising page appear on the current page and then automatically disappears if the user clicks on the skip link or does not click on the advertising after a few seconds.

The advertising display time is configurable. The same user may also not be exposed to the same advert for until a given period.

The class may invoke a given callback function when the user clicks on the advert or in the skip links.


Bin packing

Package:
Bin packing
Summary:
Implementation of one dimensional bin packing
Groups:
Algorithms
Author:
Chi Hoang
Description:
This class implements one dimensional bin packing algorithms.

It takes an array of values and can determine the next fit, first fit, best fit, worst fit.

The class also implements the Ant-Colony-Optimization bin-packing solver.


Error Logging

Package:
Error Logging
Summary:
Handle PHP fatal and non-fatal execution errors
Groups:
PHP 5, Utilities and Tools
Author:
Nitesh Apte
Description:
This class can be used to handle PHP fatal and non-fatal execution errors.

It registers an error handler that is capable of a backtrace with the list of functions and arguments used to call the code that causes an error, send that information to the current page output or the PHP error log, or send an e-mail message to the administrator.

The class can also trap fatal errors using a special PHP script shutdown callback function.


Powered by Gewgley