Download the PHP package inspur/inspur-sdk-php without Composer

On this page you can find all versions of the php package inspur/inspur-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package inspur-sdk-php

安装

更新时间: 2023-1-15

目录

环境准备

下载sdk

环境准备

下载sdk

转码任务

参数说明:

input 需要转码处理的文件输入信息。
    bucket 需要转码处理的视频文件所在的 OSS 桶 名,需要先在控制台进行云资源授权.例如:mps-22xx
    object 需要转码处理的视频文件输入路径,如movie/2022/test.mp4
output 转码处理生成文件的输出信息。
    bucket 需要转码处理的视频文件所在的 OSS 桶 名,需要先在控制台进行云资源授权.例如:mps-22xx
    folder 需要转码处理的视频文件输入路径,如movie/2022/test.mp4
mediaProcessTaskInput 媒体处理任务类型参数
   transcodeTaskInput  转码任务所需模板参数
            transcodeTemplateId  转码模板ID
            watermarkTemplateId  水印模板ID
    snapshotTaskInput  截图任务所需模板参数
            snapshotTemplateId 截图模板ID
            snapshotConfig 如果截图模板为时间点截图,该字段必填。 
                           时间点截图字符串集合。最多为20个时间点。 举例说明:["00:00:03","00:01:00"]
            snapshotMode 截图模式: beforeTranscoding:转码之前截图;
                          afterTranscoding:转码之后截图; 
                          如果截图模板ID为空,该字段为空; 如果截图模板ID不为空的情况下,默认为转码之后截图;

转码模板

参数说明:

name 转码模板名称
watermarkType 水印类型,当前只支持Image(图片水印)
position 水印的位置
 left 水印距离视频左上角左边位置,单位px;取值范围:8-4096,且只能为整数
 top  水印距离视频左上角的上方位置,单位px;取值范围:8-4096,且只能为整数
 width  水印宽度,单位px;取值范围:8-4096,且只能为整数和偶数
 height  水印高度,单位px;取值范围:8-4096,且只能为整数和偶数

水印模板

参数说明:

name 水印模板名称
watermarkType 水印类型,当前只支持Image(图片水印)
position 水印的位置
left 水印距离视频左上角左边位置,单位px;取值范围:8-4096,且只能为整数
top  水印距离视频左上角的上方位置,单位px;取值范围:8-4096,且只能为整数
width  水印宽度,单位px;取值范围:8-4096,且只能为整数和偶数
height  水印高度,单位px;取值范围:8-4096,且只能为整数和偶数

截图模板

参数说明:

name 截图模板名称
type 类型
(timing:时间点截图 ; sampling:采样点截图,其中当type为sampling时,samplingType、samplingInterval参数必填。)
imageFormat 图片格式,目前只支持JPG格式
resolution 分辨率
(分辨率标清:SD->标清:640480、HD->高清:1280720、FHD->全高清:19201080、2K->2K:20481440、
4K->4K:3840*2160、customer->自定义。其中:当分辨率选用为
customer时,customerResolution参数必须选用。)
customerResolution 用户自定义分辨率信息
samplingType 采样方式:(秒/百分比)
samplingInterval 采样间隔(大于等于1且小于等于100,只能为整数)

All versions of inspur-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0
guzzlehttp/guzzle Version >=6.3.0
guzzlehttp/psr7 Version >=1.4.2
guzzlehttp/promises Version >=1.3.1
psr/http-message Version >=1.0.1
monolog/monolog Version >=1.23.0
inspurcloud/php-oss-sdk Version >=3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package inspur/inspur-sdk-php contains the following files

Loading the files please wait ....