Download the PHP package api-video/php-sdk without Composer

On this page you can find all versions of the php package api-video/php-sdk. 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 php-sdk

badge badge badge

api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes.

Deprecation warning

This project is deprecated. It won't be updated anymore, no support will be provided, and it may not be fully compatible with the API anymore. Please use https://github.com/apivideo/api.video-php-client instead.










api.video PHP SDK

Scrutinizer Code Quality Build Status

The api.video web-service helps you put video on the web without the hassle. This documentation helps you use the corresponding PHP client.

Installation

Quick start

Advanced usage

Full API

Full API Details Implementation

Videos

Function Parameters Description Required Allowed Values
get videoId(string) Video identifier :heavy_check_mark: -
search - - - -
- parameters(array) Search parameters :x:
  • currentPage(int)
  • pageSize(int)
  • sortBy(string)
  • sortOrder(string)
  • title(string)
  • description(string)
  • tags(string|array(string))
  • metadata(array())
- callback(function) callback function :x: -
create - - - -
- title(string) Video title :heavy_check_mark: -
- properties(array) Video properties :x:
  • description(string)
  • tags(array(string))
  • playerId(string)
  • metadata(array(
    array(
    'key' => 'Key1',
    'value' => 'value1'
    ),
    array(
    'key' => 'Key2',
    'value' => 'value2'
    )
    )
upload - - - -
- source(string) Video media file :heavy_check_mark: -
- properties(array) Video properties :x:
  • title(string)
  • description(string)
  • tags(array(string))
  • playerId(string)
  • metadata(array(
    array(
    'key' => 'Key1',
    'value' => 'value1'
    ),
    array(
    'key' => 'Key2',
    'value' => 'value2'
    )
    )
- videoId(string) Video identifier :x: -
download - - - -
- source(string) Video media file :heavy_check_mark: -
- title(string) Video title :heavy_check_mark: -
- properties(array) Video properties :x:
  • description(string)
  • tags(array(string))
  • playerId(string)
  • metadata(array(
    array(
    'key' => 'Key1',
    'value' => 'value1'
    ),
    array(
    'key' => 'Key2',
    'value' => 'value2'
    )
    )
uploadThumbnail - - - -
- source(string) Image media file :heavy_check_mark: -
- videoId(string) Video identifier :heavy_check_mark: -
updateThumbnailWithTimeCode - - - -
- videoId(string) Video identifier :heavy_check_mark: -
- timecode(string) Video timecode :heavy_check_mark: 00:00:00.00
(hours:minutes:seconds.frames)
update - - - -
- videoId()string Video identifier :heavy_check_mark: -
- properties(array) Video properties :heavy_check_mark:
  • title(string)
  • description(string)
  • tags(array(string))
  • playerId(string)
  • metadata(array(
    array(
    'key' => 'Key1',
    'value' => 'value1'
    ),
    array(
    'key' => 'Key2',
    'value' => 'value2'
    )
    )
setPublic videoId(string) Video identifier :heavy_check_mark: -
setPrivate videoId(string) Video identifier :heavy_check_mark: -
delete videoId(string) Video identifier :heavy_check_mark: -

Players

Function Parameters Description Required Allowed Values
get playerId(string) Player identifier :heavy_check_mark: -
create properties(array) Player properties :x:
  • shapeMargin(int)
  • shapeRadius(int)
  • shapeAspect(string)
  • shapeBackgroundTop(string)
  • shapeBackgroundBottom(string)
  • text(string)
  • link(string)
  • linkHover(string)
  • linkActive(string)
  • trackPlayed(string)
  • trackUnplayed(string)
  • trackBackground(string)
  • backgroundTop(string)
  • backgroundBottom(string)
  • backgroundText(string)
  • enableApi(bool)
  • enableControls(bool)
  • forceAutoplay(bool)
  • hideTitle(bool)
update - - - -
- playerId(string) Player identifier :heavy_check_mark: -
- properties(array) Player properties :heavy_check_mark:
  • shapeMargin(int)
  • shapeRadius(int)
  • shapeAspect(string)
  • shapeBackgroundTop(string)
  • shapeBackgroundBottom(string)
  • text(string)
  • link(string)
  • linkHover(string)
  • linkActive(string)
  • trackPlayed(string)
  • trackUnplayed(string)
  • trackBackground(string)
  • backgroundTop(string)
  • backgroundBottom(string)
  • backgroundText(string)
  • enableApi(bool)
  • enableControls(bool)
  • forceAutoplay(bool)
  • hideTitle(bool)
uploadLogo - - - -
- source(string) Image media file :heavy_check_mark: -
- playerId(string) Player identifier :heavy_check_mark: -
- link(string) Link url :x: -
deleteLogo playerId(string) Player identifier :heavy_check_mark: -
delete playerId(string) Player identifier :heavy_check_mark: -

Captions

Function Parameters Description Required Allowed Values
get - - - -
- videoId(string) Video identifier :heavy_check_mark: -
- language(string) Language identifier :heavy_check_mark: 2 letters (ex: en, fr)
getAll videoId(string) Video identifier :heavy_check_mark: -
upload - - - -
- source(string) Caption file :heavy_check_mark: -
- properties(string) Caption properties :heavy_check_mark:
  • videoId(string)
  • language(string - 2 letters)
updateDefault - (array) - - -
- videoId Video identifier :heavy_check_mark: -
- language (string) Language identifier :heavy_check_mark: 2 letters (ex: en, fr)
- isDefault (string) Set default language :heavy_check_mark: true/false
delete - (boolean) - - -
- videoId Video identifier :heavy_check_mark: -
- language (string) Language identifier :heavy_check_mark: 2 letters (ex: en, fr)

Chapters

Function Parameters Description Required Allowed Values
get - - - -
- videoId(string) Video identifier :heavy_check_mark: -
- language(string) Language identifier :heavy_check_mark: 2 letters (ex: en, fr)
getAll videoId(string) Video identifier :heavy_check_mark: -
upload - - - -
- source(string) Chapter file :heavy_check_mark: -
- properties(string) Chapter properties :heavy_check_mark:
  • videoId(string)
  • language(string - 2 letters)
delete - (boolean) - - -
- videoId Video identifier :heavy_check_mark: -
- language (string) Language identifier :heavy_check_mark: 2 letters (ex: en, fr)

Live streams

Function Parameters Description Required Allowed Values
get liveStreamId(string) Live identifier :heavy_check_mark: -
search - - - -
- parameters(array) Search parameters :x:
  • currentPage(int)
  • pageSize(int)
  • sortBy(string)
  • sortOrder(string)
- callback(function) callback function :x: -
create - - - -
- name(string) Live name :heavy_check_mark: -
- properties(array) Live properties :x:
  • record(boolean)
  • playerId(string)
uploadThumbnail - - - -
- source(string) Image media file :heavy_check_mark: -
- liveStreamId(string) Live identifier :heavy_check_mark: -
update - - - -
- liveStreamId(string) Live identifier :heavy_check_mark: -
- properties(array) Live properties :heavy_check_mark:
  • title(string)
  • description(string)
  • tags(array(string))
  • playerId(string)
  • metadata(array(
    array(
    'key' => 'Key1',
    'value' => 'value1'
    ),
    array(
    'key' => 'Key2',
    'value' => 'value2'
    )
    )
setPublic liveStreamId(string) Live identifier :heavy_check_mark: -
setPrivate liveStreamId(string) Live identifier :heavy_check_mark: -
delete liveStreamId(string) Live identifier :heavy_check_mark: -

AnalyticsVideo

Function Parameters Description Required Allowed Values/Format
search parameters(array) Search parameters :x:
  • Pagination/Filters:
  • currentPage(int)
  • pageSize(int)
  • sortBy(string)
  • sortOrder(string)
  • tags(string|array(string))
  • metadata(array(string))
  • Period:
  • For a day : 2018-01-01
  • For a week: 2018-W01
  • For a month: 2018-01
  • For a year: 2018
  • Date range: 2018-01-01/2018-01-15
  • Week range: 2018-W01/2018-W03
  • Month range: 2018-01/2018-03
  • Year range: 2018/2020
- videoId(string) Video identifier :heavy_check_mark: -
- period (string) Period research :x:
  • For a day : 2018-01-01
  • For a week: 2018-W01
  • For a month: 2018-01
  • For a year: 2018
  • Date range: 2018-01-01/2018-01-15
  • Week range: 2018-W01/2018-W03
  • Month range: 2018-01/2018-03
  • Year range: 2018/2020
- metadata (array) Metadata research :x: -

AnalyticsLive

Function Parameters Description Required Allowed Values/Format
search parameters(array) Search parameters :x:
  • Pagination/Filters:
  • currentPage(int)
  • pageSize(int)
  • sortBy(string)
  • sortOrder(string)
  • Period:
  • For a day : 2018-01-01
  • For a week: 2018-W01
  • For a month: 2018-01
  • For a year: 2018
  • Date range: 2018-01-01/2018-01-15
  • Week range: 2018-W01/2018-W03
  • Month range: 2018-01/2018-03
  • Year range: 2018/2020
- liveStreamId(string) Live identifier :heavy_check_mark: -
- period (string) Period research :x:
  • For a day : 2018-01-01
  • For a week: 2018-W01
  • For a month: 2018-01
  • For a year: 2018
  • Date range: 2018-01-01/2018-01-15
  • Week range: 2018-W01/2018-W03
  • Month range: 2018-01/2018-03
  • Year range: 2018/2020

AnalyticsSessionEvents

Function Parameters Description Required Allowed Values/Format
search - - - -
- sessionId(string) Session identifier :heavy_check_mark: -
- parameters(array) Search parameters :x:
  • currentPage(int)
  • pageSize(int)

Tokens

Function Parameters Description Required Allowed Values
generate - Token for delegated upload - -

Account

Function Parameters Description Required Allowed Values
get - Get account informations (quota, features) - -

More on api.video

A full technical documentation is available on https://docs.api.video/


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
ext-json Version *
kriswallsmith/buzz Version ^0.15
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 api-video/php-sdk contains the following files

Loading the files please wait ....