Questions tagged [aws-php-sdk]

Amazon Web Services SDK for PHP

The AWS SDK for PHP enables PHP developers to easily work with Amazon Web Services and build scalable solutions with Amazon S3, Amazon DynamoDB, Amazon Glacier, and more.

Download Link

User Guide

API Documentation

314 questions
2
votes
1 answer

Laravel Aws\Laravel\AwsServiceProvider::class Not found

I want to use AWS QLDB Client using aws sdk in laravel v7 I have followed all procedures written here. I'm getting this error Aws\Laravel\AwsServiceProvider::class Not found
2
votes
1 answer

PHP AWS SDK Fatal error creating S3Client

Trying to use the AWS SDK for PHP to list buckets, but I keep getting this error after setting up the S3Client like so:
Ravi Mattar
  • 179
  • 1
  • 12
2
votes
0 answers

Is there a way to edit the Last Modified Date of an object stored in Amazon S3?

I am migrating some of my static content to Amazon S3 and I wanted to know if there was a way to edit the Last Modified Date of the object when moving into my S3 bucket? As you can guess, by default, the Last Modified Date is set to the creation…
zeropsi
  • 682
  • 9
  • 24
2
votes
1 answer

Using DynamoDB's updateItem with a numeric value

I am trying to update a record in DynamoDB using updateItem as part of version 3 of the PHP AWS SDK. The field I am trying to update should contain a numeric value. If I run this code I get an error: $params = array( 'TableName' => $table, …
Chris
  • 4,672
  • 13
  • 52
  • 93
2
votes
0 answers

Amazon Transcribe Streaming service request in PHP or Laravel?

I'm a PHP developer, I would like to use transcribe real time transcriptions, but I haven't found documentation for PHP about this tool, do you have a strength? For audio translation, I found it, but I didn't find real time. Below audio conversion…
2
votes
0 answers

AWS SDK for PHP, uploading an image returns 500 internal server error

I'm attempting to upload an image with AWS PHP SDK. For some odd reason some images aren't uploading? $s3 = new Aws\S3\S3Client([ 'region' => 'us-east-1', 'version' => 'latest', 'endpoint' =>…
user892134
  • 3,078
  • 16
  • 62
  • 128
2
votes
1 answer

Creating Client for Amazon Comprehend with AWS for PHP

I recently updated from version 1 of the AWS SDK for PHP to version 3 of the AWS SDK so that I could start testing scripts using the Comprehend and Textract applications. I was able to connect through version 3 and utilize S3 using the "new…
2
votes
1 answer

S3 error access when upgrading AWS PHP SDK versions

I'm upgrading a system that uses aws-php-sdk v2 to aws-php-sdk v3. In v2 i have something like: $this->s3->upload($bucket, $key, $file, 'public-read'); //Where $this->s3 is a S3Client instance (from the SDK). And it works well. Now, after upgrading…
Pipe
  • 2,379
  • 2
  • 19
  • 33
2
votes
0 answers

AWS SDK PHP - How to load multiple files with one link? How to create a zip file?

AWS PHP SDK I have a bucket, and there are folders with the following files: folder1 -- photo1 -- photo2 -- photo3 -- photo4 folder2 -- pic1 -- pic2 -- pic3 -- pic4 How can I create a download link for these files: photo1, photo4, pic2?…
2
votes
0 answers

How update item in List with Map in DynamoDb?

I have a problem, how write item in conditionExpression? $item = [ 'id' => ['N' => '382'], // List of Maps 'phone' => ['L' => [ ['M' => [ 'type' => ['S' => 'home'], 'number' => ['S' => '5555555555'], …
2
votes
1 answer

Amazon S3 PHP SDK return false if even one CommandPool fails, true otherwise

For example, I'm trying to create a method similar to doesObjectExist(), but for multiple files called doObjectsExist(). The problem is that I need it to return true if all files exist and false if even just one doesn't. Here's my current…
D-Marc
  • 2,937
  • 5
  • 20
  • 28
2
votes
1 answer

How to load json file from S3 directly in fabric.js framework?

Currently I am working with pdfjs. I have added fabric.js to do annotations on pdf file. Annotations saved in a .json file in Json format. Previously it was coming from AWS Dynamo DB but due to high volume of data now we want to move on AWS S3…
Alex Mac
  • 2,970
  • 1
  • 22
  • 39
2
votes
1 answer

Integrating AWS PHP SDK with Codeigniter

What's the best way to integrate Amazon's AWS SDK for PHP with Codeigniter 3.x? Installing via Composer and then creating a library? If so, what is the process for doing that? I've found libraries on Github for integrating just S3 with Codeigniter,…
conbask
  • 9,741
  • 16
  • 57
  • 94
2
votes
1 answer

Archive to and retrieval from glacier storage of amazon aws

I am trying to create an archive and retrieval system in php. When the user click on archive button particular files will move to glacier storage from standard storage and when click on restore button file in the glacier storage will retrieved to…
2
votes
0 answers

Error uploading file via php in aws

I want to upload a file to amazon s3 via php webpage (php sdk). My putobject code shows this problem : Uncaught exception 'InvalidArgumentException' with message ' Found 1 error while validating the input provided for the PutObject operation:…