Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS S3 PHP Fatal error: Class 'CFCredentials' not found

So, I think I'm doing everything correctly here...

I downloaded the newest AWS PHP SDK, then I copy the config-sample.inc.php to config.inc.php and fill out the keys, etc.

In my application, I require_once("../AWS/sdk.class.php") and I'm getting an error:

"PHP Fatal error: Class 'CFCredentials' not found in /Applications/MAMP/htdocs/AWS/config.inc.php on line 50"


I pass the sdk_compatibility_test.php test, so can someone help me figure out what the issue here is???

I can't figure out how sdk.class.php gets access to the CFCredentials class, since it never includes/requires "utilities/utilities.class.php", but I imagine the devs at Amazon have it linked up some how. I think I'm just missing something.

Thanks!

like image 918
JP. Avatar asked Dec 06 '25 12:12

JP.


1 Answers

Install AWS with Composer Package Manager for PHP, it's a clear procedure and is normally working out of the box.

You will also get the benefit to install other PHP based Packages easily, too.

like image 151
hakre Avatar answered Dec 08 '25 03:12

hakre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!