- Q: What is the AWS SDK for PHP?
The AWS SDK for PHP makes it easier for developers to build applications that tap into the cost-effective, scalable, and reliable AWS cloud.
Using the SDK, developers can build solutions for Amazon Simple Storage Service (Amazon S3), Amazon Elastic Compute Cloud (Amazon EC2), Amazon SimpleDB, and more. With the AWS SDK for PHP, developers get started in minutes with a single package.
- Q: What services does the AWS SDK for PHP support?
The AWS SDK for PHP supports the AWS infrastructure products. For a complete list of services, see http://aws.amazon.com/sdkforphp. We’ll continue to add support for infrastructure services and features over time. Let us know if there’s anything particular you want us to see in our PHP Development forum.
- Q: What features are included in the AWS SDK for PHP?
The SDK includes:
- AWS PHP Library—Build PHP applications on top of APIs that take the complexity out of coding directly against a web service interface. The library provides APIs that hide much of the lower-level plumbing, such as authentication.
- Code Samples —Practical examples for how to use the library to build applications.
- Documentation—Complete reference documentation with samples, demonstrating how to use the SDK.
- PEAR Channel—Easily install and update the SDK using our PHP Extension and Application Repository (PEAR) channel.
- Q: Why is AWS providing a PHP SDK?
The AWS infrastructure services provide language-agnostic web service APIs that can be used by any number of programming languages and technologies. The AWS SDK for PHP makes application development easier for our customers by providing a tailored development experience for PHP developers. Previously, developers had to download multiple libraries from different providers in order to build an application on multiple AWS products. With the AWS SDK for PHP, developers get started in minutes with a single, downloadable package with the AWS PHP library, code samples, and documentation.
- Q: How do I get support fro the AWS SDK for PHP?
All customers can get support for the AWS SDK for PHP through our community forums, getting started guide, and reference documentation available through the PHP Developer Center. AWS Premium Support customers can additionally get support through the Support Center at http://aws.amazon.com/support.
- Q: How is this different from the existing PHP libraries that AWS provides?
Based on customer feedback, the AWS SDK for PHP libraries have been re-designed to be more familiar to PHP developers. In addition to packaging the libraries into a single package along with documentation and code samples, the AWS SDK for PHP makes it easier to use multiple AWS products, including a new library for Amazon S3.
- Q: Will you deprecate the existing libraries from AWS?
Yes. While the existing libraries for AWS services will be available for download, they will not be updated to support any future service feature releases. We recommend developers switch to the new AWS SDK for PHP, where they’ll continue to get new feature updates and bug fixes.
Installation and Licensing
- Q: How can I get the AWS SDK for PHP??
You can download the AWS SDK for PHP from our web site, grab the source code from Git, or install the SDK using our PEAR channel. Check out our web page at http://aws.amazon.com/sdkforphp for details.
- Q: What version of PHP do you support?
The AWS SDK for PHP supports PHP 5.2 or later.
- Q: Where can I find the source code?
The source code is available through our Git repository on GitHub, http://github.com/amazonwebservices/aws-sdk-for-php. There, you can browse the source code online, download the entire package source, or create your own clone.
- Q: Is the AWS SDK for PHP open source? How is the SDK licensed?
The library and sample application source code is licensed under the Apache 2.0 license, so you can modify and re-distribute the code with the appropriate attribution.
- Q: Do you accept code contributions?
Yes. If you’d like to contribute, you must first sign the Amazon Contributor License Agreement (CLA) and send it over to us — then we can accept your GitHub pull request. Minor bug fixes or code changes can also just be posted to the PHP Development forum.
Migrating to the AWS SDK for PHP from CloudFusion
- Q: Isn’t the AWS SDK for PHP similar to CloudFusion?
Yes. CloudFusion, a popular PHP library for accessing AWS APIs, has now become the AWS SDK for PHP.
- Q: Are there any changes between CloudFusion and the AWS SDK for PHP?
Yes. For the most part, the API remains the same, but there are a few important changes to note:
- Most service-specific global constants are now class constants
- The package file structure has been cleaned up into separate /services and /utilities directories.
- A few file names have changes to represent the new project name: AWS SDK for PHP.
The AWS SDK for PHP also adds a new reference documentation format.
See Migrating to the AWS SDK for PHP for more information on changes between CloudFusion and the AWS SDK for PHP.
- Q: What about the Product Advertising API?
Support for the Product Advertising API will continue to exist in the CloudFusion project. Support for new infrastructure services and features will go into the AWS SDK for PHP.
- Q: How do I migrate from CloudFusion to the AWS SDK for PHP?
Check out Migrating to the AWS SDK for PHP for more information on how to migrate your application from CloudFusion to the AWS SDK for PHP.