Stanford Web Application Toolkit

From Web Services Wiki

(Difference between revisions)
Jump to: navigation, search
(StanfordDirectory / StanfordPerson)
(StanfordUtil)
Line 38: Line 38:
=== StanfordUtil ===
=== StanfordUtil ===
 +
 +
StanfordUtil is a collection of miscellaneous tools that require little-to-no configuration. Operations such as undoing magic quotes and setting up custom error reporting only require a single line of code each using this module.
* [[How to undo magic quotes using the Stanford Web Application Toolkit|How to undo magic quotes]]
* [[How to undo magic quotes using the Stanford Web Application Toolkit|How to undo magic quotes]]

Revision as of 18:15, 3 December 2008

Contents

Introduction

The Stanford Web Application Toolkit (SWAT) is a set of tools designed to assist Stanford web developers in creating secure and robust PHP-based web applications. It gives the programmer straightforward methods for connecting to the database, searching the directory, authorization, sending e-mail, handling file uploads, defending against SPAM, and other common-but-often-tedious tasks. SWAT has three primary goals: security, accessibility, and ease of use. The toolkit is broken down into several modules.

Contents

General

StanfordApp

This module functions as a light framework for Stanford web applications. Using StanfordApp, you may load a YAML-formatted configuration file with your site's basic information, database configuration, and other settings.

StanfordDatabase

A simple extension of PHP's MySQLi, this module greatly simplifies database-related functionality at Stanford. Enabling MySQL-based sessions is one line of code, and turning on encryption is just as easy.

StanfordDirectory / StanfordPerson

Writing raw LDAP queries and parsing the results using PHP is far from straightforward, which is why we developed these classes. StanfordDirectory connects and binds to the directory in order to perform searches, while StanfordPerson provides an intuitive means of getting basic information about Stanford users.

StanfordEmail

StanfordUtil

StanfordUtil is a collection of miscellaneous tools that require little-to-no configuration. Operations such as undoing magic quotes and setting up custom error reporting only require a single line of code each using this module.

Personal tools