Resources



Sample Code and Libraries

pawsSDB - An easy-to-use, high-level PHP class for SimpleDB

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
 

This package provides and easy-to-use, high-level PHP library to access SimpleDB. It includes the pawsSDB class, complete documentation, example code, and utilities.

Submitted By: Bruce Wampler  
AWS Products Used: Amazon SimpleDB
Language(s): PHP
License: Apache License 2.0

About this Library

This library currently provides a high level, natural PHP programming style interface to AWS SimpleDB. It will eventually be extended to include S3 and EC2.

It relies on the standard Amazon_SimpleDB library, but wraps it in an easy to use class that makes it trivial to use SimpleDB with PHP. It is very small, and comes with complete documentation explaining each function of the class and provides usage examples.

The package also includes a PHP Web application that allows you to easily access your SimpleDB online. The app, pawsDemo.php, allows you to create, delete, and list domains. You can create, modify, examine, and delete items. You can perform queries. And you can list out the contents of a domain or the whole database. This app also demonstrates use of the pawsSDB class.

This package is Copyright © 2008 Bruce E. Wampler, and is released under the terms of the Apache 2.0 License.

Prerequisites

Reference Documentation

Package Content

Directory Overview
aws-libs Source distribution of paws library, paws documentation, and Amazon_SimpleDB library.

Quick Start

The source for this package can be downloaded from http://code.google.com/p/paws-library/ as a tar.gz file: pawsSDB.tar.gz.

Unzip the package, ideally in your root directory. This will produce a directory /aws-libs, with subdirectories /Amazon and /paws. These subdirectories contain the Amazon_SimpleDB library distribution, the paws pawsSDB class definition, some tools, and the documentation. The file /aws-libs/paws/pawsConfig.php will have to be edited to add your AWS id and password and configure the path correctly. There is plenty of detail in the documentation.

Comments, Questions or Feedback

If you have any comments, questions or feedback on the library, please visit the Amazon SimpleDB discussion forums.

Discussion
Click to start a discussion on this document Create a New Discussion
No discussion has been created for this document.

Reviews
Create Review Write a Review
Be the first to review this.
Welcome, Guest Help
Login Login