irap/aws-wrapper
Composer 安装命令:
composer require irap/aws-wrapper
包简介
Package for rapidly developing models that represent mysql tables. Tables must have an id field.
README 文档
README
This package aims to wrap around Amazons PHP sdk so that it provides the developer with a more object-orientated interface. Thus the developer will spend less time looking up the parameters they can pass into an array. This version of the wrapper is based on version 3 of the SDK.
Installation
composer require irap/aws-Wrapper
Example Usage
<?php require_once(__DIR__ . '/vendor/autoload.php'); define('S3_BUCKET', 'my-bucket-name'); define('AWS_KEY', 'someKeyValueHere'); define('AWS_SECRET', 'someAwsSecretHere'); $awsWrapper = new \iRAP\AwsWrapper\AwsWrapper( AWS_KEY, AWS_SECRET, iRAP\AwsWrapper\Enums\AwsRegion::create_EU_W1() ); # Get the S3 client for interfacing with S3, rather than EC2 $s3Client = $awsWrapper->getS3Client(); # Create a private file in S3 called "test-file.txt" that contains the text # "hello world" in our bucket. $response = $s3Client->createFile( S3_BUCKET, "hello world", 'test-file.txt', iRAP\AwsWrapper\S3\Acl::createAuthenticatedRead(), iRAP\AwsWrapper\S3\StorageClass::createStandard() );
Debugging
I've occasionally had issues with running commands that would just block and never return. The solution for me was to install the php-xml package with
sudo apt-get install php-xml
I will remove this note once I have figured out how to make composer require that for installation.
irap/aws-wrapper 适用场景与选型建议
irap/aws-wrapper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.34k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 10 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mysql」 「models」 「mysqli」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 irap/aws-wrapper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 irap/aws-wrapper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 irap/aws-wrapper 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Wordpress Query Builder class library for custom models and data querying.
An adapter for phpmig which provides database access via mysqli
A Laravel package for managing model drafts.
A package to better handle database operations via Eloquent Models.
A model factory package for Laravel 4 with expressive API for creating custom tailored dummy objects
统计信息
- 总下载量: 4.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-30