I would like to use the Amazon AWS SDK for PHP in my Yii project, however I get all kinds of include errors (such as include(CFCredentials.php): failed to open stream: No such file or directory
).
I think it may be related to Yii's assumption that class names must match file names...
What can we do??
I've made that:
This worked beautifully:
This is more easier way, You can use Yii S3 Upload extension.
http://www.yiiframework.com/extension/s3upload/
In case someone stumbles upon this issue, I've found that if one is using the PHAR file directly (poor decision, I know) and importing via require_once, you cannot call spl_autoload_register to re-add YiiBase autoload until after your SDK call is complete.
At least this was our case when using the StsClient to call assume role with an IAM role.