承接 sunaoka/aws-sdk-php-structures 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sunaoka/aws-sdk-php-structures

Composer 安装命令:

composer require sunaoka/aws-sdk-php-structures

包简介

Library for converting AWS SDK for PHP parameters and results into typed classes

README 文档

README

This is an EXPERIMENTAL library for converting AWS SDK for PHP parameters and results into typed classes.

Installation

Remove unused services and actions

This library contains a very large number of class files.

So, you can run the Sunaoka\Aws\Structures\Task\Composer::removeUnusedServices task and specify the services you want to keep in composer.json:

{
    "scripts": {
        "pre-autoload-dump": [
            "Sunaoka\\Aws\\Structures\\Task\\Composer::removeUnusedServices"
        ]
    },
    "extra": {
        "sunaoka/aws-sdk-php-structures": {
            "S3": [
                "GetObject"  // Keep S3 GetObject action
            ],
            "DynamoDb": []   // Keep DynamoDb all actions
        }
    }
}

Install

composer require sunaoka/aws-sdk-php-structures

Usage

use Sunaoka\Aws\Structures\S3\GetObject\GetObjectRequest;
use Sunaoka\Aws\Structures\S3\S3Client;

// The class of the request is '<Command>Request'.
$request = new GetObjectRequest([
    'Bucket' => 'bucket',
    'Key' => 'key',
]);

$client = new S3Client([/* ... */]);
$result = $client->getObject($request);

echo $result->Body->getContents();

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-01-14