{"id":16462986,"url":"https://github.com/sunaoka/laravel-aws-sdk-php","last_synced_at":"2025-10-14T16:05:35.289Z","repository":{"id":70053136,"uuid":"604467016","full_name":"sunaoka/laravel-aws-sdk-php","owner":"sunaoka","description":"AWS Service Provider for Laravel","archived":false,"fork":false,"pushed_at":"2025-07-17T08:51:50.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-14T16:04:04.075Z","etag":null,"topics":["aws","laravel","php","sdk"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/sunaoka/laravel-aws-sdk-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunaoka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-21T05:47:10.000Z","updated_at":"2025-07-17T08:51:53.000Z","dependencies_parsed_at":"2023-12-01T02:41:53.783Z","dependency_job_id":"2b685278-e280-45d9-be3d-1d25eb0ad069","html_url":"https://github.com/sunaoka/laravel-aws-sdk-php","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/sunaoka/laravel-aws-sdk-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunaoka%2Flaravel-aws-sdk-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunaoka%2Flaravel-aws-sdk-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunaoka%2Flaravel-aws-sdk-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunaoka%2Flaravel-aws-sdk-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunaoka","download_url":"https://codeload.github.com/sunaoka/laravel-aws-sdk-php/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunaoka%2Flaravel-aws-sdk-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279019554,"owners_count":26086750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","laravel","php","sdk"],"created_at":"2024-10-11T11:13:02.829Z","updated_at":"2025-10-14T16:05:35.268Z","avatar_url":"https://github.com/sunaoka.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Service Provider for Laravel\n\n[![Latest Stable Version](https://poser.pugx.org/sunaoka/laravel-aws-sdk-php/v/stable)](https://packagist.org/packages/sunaoka/laravel-aws-sdk-php)\n[![License](https://poser.pugx.org/sunaoka/laravel-aws-sdk-php/license)](https://packagist.org/packages/sunaoka/laravel-aws-sdk-php)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/sunaoka/laravel-aws-sdk-php)](composer.json)\n[![Laravel](https://img.shields.io/badge/laravel-%3E=%206.x-red)](https://laravel.com/)\n[![Test](https://github.com/sunaoka/laravel-aws-sdk-php/actions/workflows/test.yml/badge.svg)](https://github.com/sunaoka/laravel-aws-sdk-php/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/sunaoka/laravel-aws-sdk-php/branch/main/graph/badge.svg?token=VW3IQRG6VG)](https://codecov.io/gh/sunaoka/laravel-aws-sdk-php)\n\n----\n\n## Installation\n\n```bash\ncomposer require sunaoka/laravel-aws-sdk-php\n```\n\n## Configurations\n\n```bash\nphp artisan vendor:publish --tag=aws-config\n```\n\nThe settings can be found in the generated `config/aws.php` configuration file.\n\n```php\n\u003c?php\n\nreturn [\n    'credentials' =\u003e [\n        'key'    =\u003e env('AWS_ACCESS_KEY_ID'),\n        'secret' =\u003e env('AWS_SECRET_ACCESS_KEY'),\n        'token'  =\u003e env('AWS_SESSION_TOKEN'),\n    ],\n    'region'      =\u003e env('AWS_DEFAULT_REGION'),\n    'version'     =\u003e env('AWS_API_VERSION', 'latest'),\n    'endpoint'    =\u003e env('AWS_ENDPOINT'),\n\n    // Override Configuration for specific services\n    // 'S3' =\u003e [\n    //     'use_path_style_endpoint' =\u003e false,\n    // ],\n];\n```\n\n## Usage\n\n```php\n$s3 = \\AWS::createS3();\n\n$result = $s3-\u003egetObject([\n    'Bucket' =\u003e 'Bucket',\n    'Key'    =\u003e 'Key',\n]);\n\necho $result['Body'];\n```\n\n## Testing\n\nYou may use the `AWS` facade's `fake` method to apply the mock handler.\n\nFor more information on mock handlers, please refer to the [Developer Guide](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_handlers-and-middleware.html).\n\n```php\nuse Aws\\Result;\nuse Aws\\MockHandler;\nuse Aws\\CommandInterface;\nuse Psr\\Http\\Message\\RequestInterface;\nuse Aws\\Exception\\AwsException;\n\n$mock = new MockHandler();\n$mock-\u003eappend(new Result(['Body' =\u003e 'foo']));\n$mock-\u003eappend(function (CommandInterface $cmd, RequestInterface $req) {\n    return new AwsException('Mock exception', $cmd);\n});\n\n\\AWS::fake($mock);\n\n$s3 = \\AWS::createS3();\n\n$result = $s3-\u003egetObject([\n    'Bucket' =\u003e 'Bucket',\n    'Key'    =\u003e 'Key',\n]);\n\necho $result['Body']; // foo\n```\n\nMock handlers can also be set for each client.\n\n```php\nuse Aws\\DynamoDB\\DynamoDbClient;\nuse Aws\\MockHandler;\nuse Aws\\Result;\nuse Aws\\S3\\S3Client;\n\n$mockHandlers = [\n    S3Client::class =\u003e new MockHandler([\n        new Result(['Body' =\u003e __METHOD__]),\n    ]),\n    DynamoDbClient::class =\u003e new MockHandler([\n        new Result(['TableNames' =\u003e ['Table1', 'Table2', 'Table3']]),\n    ]),\n];\n\n\\AWS::fake($mockHandlers);\n\n$s3 = \\AWS::createS3();\n\n$result = $s3-\u003egetObject([\n    'Bucket' =\u003e 'Bucket',\n    'Key'    =\u003e 'Key',\n]);\n\necho $result['Body']; // foo\n\n$dynamoDb = \\AWS::createDynamoDb();\n\n$result = $dynamoDb-\u003elistTables();\n\necho $result['TableNames'][0]; // Table1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunaoka%2Flaravel-aws-sdk-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunaoka%2Flaravel-aws-sdk-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunaoka%2Flaravel-aws-sdk-php/lists"}