承接 ublaboo/aws-sdk-nette-extension 相关项目开发

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

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

ublaboo/aws-sdk-nette-extension

最新稳定版本:v1.1.0

Composer 安装命令:

composer require ublaboo/aws-sdk-nette-extension

包简介

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

README 文档

README

Latest Stable Version License Total Downloads Gitter

aws-sdk-nette-extension

A Nette extension for the AWS SDK for PHP http://aws.amazon.com/sdkforphp/

Installation

Download extension using composer

composer require ublaboo/aws-sdk-nette-extension 

Register extension in your config.neon file:

extensions: aws: Ublaboo\AwsSdkNetteExtension\DI\AwsSdkNetteExtension 

Configuration

Configure extension in your config.neon file:

aws: region: eu-west-1 version: latest # settings for interacting with other then Amazon endpoints endpoint: (optional - when ommited, Amazon AWS URL is used) use_path_style_endpoint: true|false (optional - default=false) 

And put your key and secret in your config.local.neon file (which should not be versioned)

aws: credentials: key: your_access_key secret: your_secret_access_key use_aws_shared_config_files: true|false (optional - default=true) 

Usage

Ideally create some services wrapping the S3 client with your logic inside them

class S3Service { /**  * @var \Aws\S3\S3Client  */ public $s3; public function __construct(\Aws\S3\S3Client $s3) { $this->s3 = $s3; } public function save($path_to_file) { $this->s3->putObject([ 'Bucket' => 'YourBucket', 'Key' => 'YourObjectKey', 'SourceFile' => $path_to_file, ]); } }

And use them in your presenters:

class HomepagePresenter extends Presenter { /**  * @var S3Service  * @inject  */ public $service; public function actionDefault() { $this->service->save('/path/to/file'); } }

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固