How To install AWS SDK for PHP in wordpress?

I am going to install and use AWS SDK for PHP to facilitate uploads/list objects directly from the front-end of my WordPress instance to S3. What is the best practice to do that ?

P.S: I don’t want to use plugins

2 Answers
2

  • Install Amazon Web Services Plugin. (https://wordpress.org/plugins/amazon-web-services/)
  • Add all the required keys, at the AWS menu that now should be available in your WP dashboard.
  • Include the library in your code, in my case was:

    require ‘/path/to/plugins/amazon-web-services/vendor/aws/aws-autoloader.php’;

  • Enjoy!

Leave a Comment