Category Archives: Classes

Socksed

Package:
Socksed
Summary:
Connect to a remote machine via a SOCKS server
Groups:
Networking
Author:
windylea
Description:
This class can be used to connect to a remote machine via a SOCKS server.

It can establish a connection with SOCKS server that supports versions 4, 4a or 5 of the SOCKS protocol to route a connection to a given remote machine.

The class can also send and receive information from the remote machine using the same connection to the SOCKS server.


Aktive Merchant

Package:
Aktive Merchant
Summary:
Common interface to process payments with gateways
Groups:
E-Commerce, PHP 5
Author:
Andreas Kollaros
Description:
This package provides a common interface to process payments using multiple gateways. It is a PHP port of Ruby's Active Merchant library.

It can take the information details of a credit card, an order to be paid and send a request to a supported payment gateway to request payment authorization.

Currently it supports the payment gateways: Authorize.net, Centinel 3D Secure, Eurobank Payment, HSBC Secure e-Payment and Paypal Express Checkout.


XML-RSS Feed Generator

Screenshot of a Demo
Package:
XML-RSS Feed Generator
Summary:
Generate RSS 2.0 feeds
Groups:
PHP 5, XML
Author:
João Pedro Pereira
Description:
This class can be used to generates RSS 2.0 feeds.

It can use compose the definition of a feed channel and items by specifying the titles, URLs, descriptions, etc..

The class can generate XML for the feed as the output of the current script.


AutoDBRec

Package:
AutoDBRec
Summary:
Query databases with single calls to PEAR MDB2
Groups:
Databases, PHP 5
Author:
ielaff
Description:
This class can be used to query databases with single calls to PEAR MDB2.

It establishes a connection to a database given its DSN string.

The class can execute queries and cache the results using the Cache Lite package.

It can also retrieve paginated results using the Pager package.


PHP to Yahoo Messenger

Package:
PHP to Yahoo Messenger
Summary:
Send an instant message to Yahoo Messenger user
Groups:
Chat, PHP 5, Web services
Author:
Halim PN
Description:
This class can be used to send an instant message to Yahoo Messenger user.

It can send HTTP requests to the Yahoo Messenger Web server to authenticate as a given user and then sends a message to another given user.


ODBC on The Fly

Package:
ODBC on The Fly
Summary:
Connect and query Microsoft Access databases
Groups:
Databases, PHP 5, Windows
Author:
Osama Salama
Description:
This class can be used to connect and query Microsoft Access databases.

It takes the path of a Microsoft Access database file and computes suitable a DSN string to establish a connection to the database using ODBC extension on Windows.

The class can also execute a given SQL query to the connected database and return the whole result set in an array.


Simple Singleton and Multiton Class

Package:
Simple Singleton and Multiton Class
Summary:
Create and manage one or more singleton objects
Groups:
Design Patterns, PHP 5
Author:
Andrei Alexandru
Description:
This package can be used to create and manage one or more singleton objects.

There is one class that can manage one singleton object, assuring that only one instance of the class is created.

Another class can manage multiple singleton objects which are distinguished by name.


Folder_DetailView

Package:
Folder_DetailView
Summary:
Show a list of nested folders as collapsible tree
Groups:
HTML, PHP 5
Author:
Michael J. Fuhrman
Description:
This package can be used to show a list of nested folders as collapsible tree.

It can generate HTML and JavaScript to show a list of nested folders that expand and collapse when the user clicks on folder entries.


amba XML document

Package:
amba XML document
Summary:
Extend the DOM XML classes
Groups:
PHP 5, XML
Author:
Alexey V Ryazhskikh
Description:
This package extends the DOM XML classes to provide additional functionality.

The DOM Document extension class can return the document root element, add a new node to the end of the document, select nodes that match a XPath expression, call a function for a list of elements and transform a document using XSL.

The DOM element extension class can get XML for the owner document, get the node XPath, get child nodes, select child nodes that match a XPath expression, get the parent and sibling nodes, get and set attributes by name, copy attributes, add child nodes and character data, import and export nodes to and from another document, set and get the inner XML of a node, call a function for nodes that map a XPath expression, etc..

Standard DOMDocument has rich functionality, but it is not handy enough. XMLDocument is extension of standard PHP DOMDocument and DOMElement.


This project contains two classes for easy create, navigate and process XML documents.

Main features is:

* SelectSingleNode and SelectNodes - node related functions works like same functions in C#.
* Inner XML getting/setting - easy and in one line.
* Chain style to create new node sets.
* Functions for frequently used actions: copy attributes, delete all childs etc.

Usage sample:

$doc = new XMLDocument("<Users/>");
$doc->getRoot()->addNode('User')
->setAttribute('Active', 'true')
->addNodeWithCData('Name', 'John')
->getParent()->getParent()
->addNode('User')
->setInnerXML('<Name><![CDATA[Peter]]></Name>');
echo $doc->saveXML();

Result:

<Users>
<User Active="true">
<Name><![CDATA[John]]></Name>
</User>
<User>
<Name><![CDATA[Peter]]></Name>
</User>
</Users>

See Samples for more details.


Multi-OTP PHP class

Package:
Multi-OTP PHP class
Summary:
Authenticate and manage OTP user tokens
Groups:
Cryptography, Security, User Management
Author:
André Liechti
Description:
This class can be used to authenticate and manage OTP user tokens.

It can create, update and delete tokens to authenticate users with one time passwords (OTP). The users data is stored in files.

The class can also check the user token using several algorithms: Mobile OTP (MOTP), OATH/HOTP (RFC 4226) and OATH/TOTP HOTP Time Based (RFC 4226 extension).


Powered by Gewgley