PHP-AWS

Category: PHP - Development Tools

PHP-AWS is a collection of PHP classes that let you take advantage of Amazon's web services platform (AWS). Currently, we have classes for use with - Simple Storage Service (S3) - Simple Queue Service (SQS) - Elastic Compute Cloud (EC2) - Mechanical Turk (MTurk) Methods__construct($key, $secret)The S3 constructor initializes $this->_hasher using Amazon key and secret key you supply.base64($str)Returns the base-64 encoded version of string $str.bucketExists($bucket)Returns true if $bucket is one of your available buckets. If false is returned, the bucket may potentially exist for another user.createBucket($bucket)Attempts to create $bucket as a new bucket in your account. Returns true on success. If not successful, false is returned and $this->error is set with the error message received from Amazon.deleteBucket($bucket)Attempts to delete the bucket named $bucket from your account. Returns true on success. If not successful, false is returned and $this->error is set with the error message received from Amazon. Note: non-empty buckets cannot be deleted. This is a restriction (a good one) of Amazon.deleteObject($bucket, $object)Attempts to delete the object named $object in bucket $bucket. Returns true on success. False if the object could not be deleted.directorySize($bucket, $prefix)Returns the size, in bytes, of all the keys in bucket $bucket with prefix $prefix.downloadObject($bucket, $object, $saveTo)Downloads the object named $object from bucket $bucket and saves on the filesystem as $saveTo.getBucketContents($bucket, $prefix, $delim, $marker)Returns an array containing the contents of bucket $bucket. Please see the Amazon reference for an explanation of how $prefix, $delim, and $marker affect the results.getBuckets()Returns an array containing the buckets accessible to your account.getObject($bucket, $object)Returns the contents of the object $object in bucket $bucket. Note: since this loads the contents into memory, consider using downloadObject() for large files.getObjectHead($bucket, $object)Returns the HTTP header info for object $object in bucket $bucket.getObjectInfo($bucket, $object)Returns Amazon's meta information about object $object in bucket $bucket.isOk($result)Searches the result of the current request for an error message. Returns true if none found. Otherwise, returns false and stores the error message in $this->_error.objectExists($bucket, $object)Returns true if object $object in bucket $bucket exists. False if it does not exist.putObject($bucket, $object, $filename, $public, $disposition)Stores the file $filename into bucket $bucket as object $object. If $public is true, the new object will be publicly accessible via the web at homepage If $disposition is set, the object will be stored with a special header to make the file download as an attachment named $disposition. This is useful if you want the file to have a different filename than its object name.sendRequest($req, $params)Sends the request specified by the array $req along with any additional params listed in the array $params. Note: items in $req are sent as arguments to curl, while items in $params are sent in the query string.signature($req)Calculates a request signature using the algorithm specified by Amazon and the items in $req. sortKeys($keys, $first)Sorts the keys listed in $keys. If $first is null it sorts the keys alphabetically. If $first is "key", keys are sorted alphabetically followed by prefixes. If $first is "prefix", prefixes are sorted first then the keys. This is useful if you want to list your getBucketContents() results in a filesytem format. You can have files and directories intermixed (OS X style) or directories listed first (Windows style). Date: 19 February, 2012


PHP AWS - Development Tools - Amazon Services - Php - Aws - Development

Homepage: http://code.google.com

Developer: code.google.com

License: Artistic License, GNU General Public License (GPL)

Operating System: Windows, Linux, BSD, Solaris

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

We have many scripts for you to download and enjoy.

developer Developer: iDownload
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


This tool is made up of three seperate tools.

developer Developer: B.D. Brown
license License: Freeware
operating systems Operating System: Linux


The Microsoft.

developer Developer: tipsntracks.com
license License: Freeware
operating systems Operating System: All


Allows configuration and use of the Jetty webserver directly from IntelliJ IDEA, for running/debugging web applications.

developer Developer: plugins.intellij.net
license License: Freeware
operating systems Operating System: All


QuickDataTable:Provides a quick way to define a powerful data grid control to display, search and sort tabular data from a postgres database.

developer Developer: quickdata.googlecode.com
license License: Freeware
operating systems Operating System: All


mMAIM's purpose is to make it easy to monitor and analyze MySQL servers and to easily integrate itself into any environment.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


This tools indended to generate PHP source code for data access classes.

developer Developer: phpdaogen.googlecode.com
license License: Freeware
operating systems Operating System: All


Office for PHP aim to be the first implementation of a cross-platform, reader/writer, dom-like based software to manage Office and OpenOffice documents with a pluggable back-end architecture that will let to developers to implement their own reader/writers and will let to users to manage their documents without be worried about the file format.

developer Developer: code.google.com
license License: Freeware
operating systems Operating System: Windows, Linux, BSD, Solaris


Liquid is a PHP port of the Liquid template engine for Ruby, which was written by Tobias Lutke.

developer Developer: code.google.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, BSD, Solaris