Requirements and recommendations for the AWS SDK for PHP Version 3
For best results with AWS SDK for PHP, ensure your environment supports the following requirements and recommendations.
Requirements
To use the AWS SDK for PHP, you must be using PHP version 5.5.0 or later with the
SimpleXML PHP extension
Recommendations
In addition to the minimum requirements, we recommend you also install, uninstall, and use the following.
Install cURL |
Use a recent version of cURL compiled with OpenSSL/NSS and zlib. If cURL isn’t installed on your system and you don’t configure a custom http_handler for your client, the SDK uses the PHP stream wrapper. |
Use OPCache |
Use the OPcache extension to improve PHP performance by storing precompiled script bytecode in shared memory. This removes the need for PHP to load and parse scripts on each request. This extension is typically enabled by default. When running Amazon Linux, you need to install the php56-opcache or php55-opcache yum package to use the OPCache extension. |
Uninstall Xdebug |
Xdebug can help identify performance bottlenecks. However, if performance is critical to your application, don’t install the Xdebug extension in your production environment. Loading the extension slows SDK performance considerably. |
Use a Composer |
Autoloaders load classes as they are required by a PHP script. Composer generates an autoloader that can autoload the PHP scripts of your application and all other PHP scripts required by your application, including the AWS SDK for PHP. For production environments, we recommended you use a classmap autoloader to improve autoloader performance. You can generate a classmap autoloader by passing the
|
Compatibility test
Run the compatibility-test.php
When reporting an issue with the SDK, sharing the output of the compatibility test helps identify the underlying cause.