承接 tonitin/post-s3 相关项目开发

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

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

tonitin/post-s3

最新稳定版本:0.1.2

Composer 安装命令:

composer require tonitin/post-s3

包简介

Upload direct to s3

README 文档

README

This library allows you to quickly create the post signed request for S3, from the database models.

First Step

  • Includes trait S3PostSigned in your model
use S3PostSigned;

Here's an example of using createPostSigned method:

$post = new Post();
$sizeBytes = 80000;
$bucketName = 'example';
$key = 'xyz/abc/horse.mp3';
$postSigned = $post->createPostSigned($bucketName, $key, $sizeBytes);

Example response

{
  "formAttributes": {
    "action": "endpointUrl",
    "method": "POST",
    "enctype": "multipart/form-data"
  },
  "formInputs": {
    "key": "xyz/abc/horse.mp3",
    "X-Amz-Credential": "xxxxxxxxx",
    "X-Amz-Algorithm": "xxxxxxxxx",
    "X-Amz-Date": "xxxxxxxxxxxxxxxxxxxxxxxx",
    "Policy": "xxxxxxxxxxxxxxxxxxxxxxxx",
    "X-Amz-Signature": "xxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-12