ogogo/amazon-et 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ogogo/amazon-et

Composer 安装命令:

composer require ogogo/amazon-et

包简介

Amazon ET client for PHP

README 文档

README

PHP class for interacting with Amazon Elastic Transcoder that does not require PEAR.

Usage

Object-oriented method:

$et = new AWS_ET($awsAccessKey, $awsSecretKey, $awsRegion);

Statically:

AWS_ET::setAuth($awsAccessKey, $awsSecretKey, $awsRegion);

Note: us-east-1 is the default AWS region setting. The third parameter is optional for us-east-1 users.

Job Operations

Creating a transcoding job:

$pipelineId = 'pipelineId';
$input = array('Key' => 'inputFile');
$output = array(
  'Key' => 'outputFile.mp4',
  'PresetId' => 'presetId'
 );

$result = AWS_ET::createJob($input, array($output), $pipelineId);

if (!$result) {
  echo AWS_ET::getErrorMsg();
} else {
  echo 'New job ID: ' . $result['Job']['Id'];
}

List jobs by pipeline:

AWS_ET::listJobsByPipeline( string $pipelineId [, boolean $ascending = true ] );

List jobs by status:

AWS_ET::listJobsByStatus( string $status );

Get job info:

AWS_ET::readJob( string $jobId );

Cancel a job:

AWS_ET::cancelJob( string $jobId );

Pipeline Operations

Create a new pipeline:

AWS_ET::createPipeline( string $name, string $inputBucket, string $outputBucket, string $role [, array $notifications ] );

Get a list pipelines:

AWS_ET::listPipelines();

Get info about a pipeline:

AWS_ET::readPipeline( string $pipelineId );

Update pipeline settings:

AWS_ET::updatePipeline( string $pipelineId, array $updates );

Change the status of a pipeline (active/paused):

AWS_ET::updatePipelineStatus( string $pipelineId, string $status );

Update pipeline notification settings:

AWS_ET::updatePipelineNotifications( string $pipelineId [, array $notifications ] );

Delete a pipeline:

AWS_ET::deletePipeline( string $pipelineId );

Test the settings for a pipeline:

AWS_ET::testRole( string $inputBucket, string $outputBucket, string $role, array $topics );

Preset Operations

Create a preset:

AWS_ET::createPreset( array $options );

List all presets:

AWS_ET::listPresets();

Get info about a preset:

AWS_ET::readPreset( string $presetId );

Delete a preset:

AWS_ET::deletePreset( string $presetId );

Misc.

Set AWS authentication credentials:

AWS_ET::setAuth( string $awsAccessKey, string $awsSecretKey );

Set AWS region:

AWS_ET::setRegion( string $region = 'us-east-1' );

Get HTTP status code of server response:

AWS_ET::getStatusCode();

Get server response:

AWS_ET::getResponse();

Get error message, if any:

AWS_ET::getErrorMsg();

More Information:
Getting Started with Elastic Transcoder

License

Released under the MIT license.

githalytics.com alpha

ogogo/amazon-et 适用场景与选型建议

ogogo/amazon-et 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 03 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 ogogo/amazon-et 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ogogo/amazon-et 我们能提供哪些服务?
定制开发 / 二次开发

基于 ogogo/amazon-et 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2015-03-01