Download the PHP package ziggeo/ziggeophpsdk without Composer

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

Ziggeo's PHP Server SDK

latest version: 0.1.30

Index

  1. Why Ziggeo's PHP Server Side SDK?
  2. Prerequisites
    1. Download
    2. How to use
    3. Dependencies
  3. Client-Side Integration
  4. Server-Side Integration
    1. Init
    2. Available Methods
    3. Methods for Videos
      1. Videos Index
      2. Videos Count
      3. Videos Get
      4. Videos Get Bulk
      5. Videos Stats Bulk
      6. Videos Download Video
      7. Videos Download Image
      8. Videos Get Stats
      9. Videos Push To Service
      10. Videos Apply Effect
      11. Videos Apply Meta
      12. Videos Update
      13. Videos Update Bulk
      14. Videos Delete
      15. Videos Create
      16. Videos Analytics
    4. Methods for Streams
      1. Streams Index
      2. Streams Get
      3. Streams Download Video
      4. Streams Download Image
      5. Streams Push To Service
      6. Streams Delete
      7. Streams Create
      8. Streams Attach Image
      9. Streams Attach Video
      10. Streams Attach Subtitle
    5. Methods for Audios
      1. Audios Index
      2. Audios Count
      3. Audios Get
      4. Audios Get Bulk
      5. Audios Download Audio
      6. Audios Update
      7. Audios Update Bulk
      8. Audios Delete
      9. Audios Create
    6. Methods for Audio Streams
      1. Audio Streams Index
      2. Audio Streams Get
      3. Audio Streams Download Audio
      4. Audio Streams Delete
      5. Audio Streams Create
    7. Methods for Authtokens
      1. Authtokens Get
      2. Authtokens Update
      3. Authtokens Delete
      4. Authtokens Create
    8. Methods for Application
      1. Application Get
      2. Application Update
      3. Application Get Stats
    9. Methods for Effect Profiles
      1. Effect Profiles Create
      2. Effect Profiles Index
      3. Effect Profiles Get
      4. Effect Profiles Delete
      5. Effect Profiles Update
    10. Methods for Effect Profile Process
      1. Effect Profile Process Index
      2. Effect Profile Process Get
      3. Effect Profile Process Delete
      4. Effect Profile Process Create Filter Process
      5. Effect Profile Process Create Watermark Process
      6. Effect Profile Process Edit Watermark Process
    11. Methods for Meta Profiles
      1. Meta Profiles Create
      2. Meta Profiles Index
      3. Meta Profiles Get
      4. Meta Profiles Delete
    12. Methods for Meta Profile Process
      1. Meta Profile Process Index
      2. Meta Profile Process Get
      3. Meta Profile Process Delete
      4. Meta Profile Process Create Video Analysis Process
      5. Meta Profile Process Create Audio Transcription Process
      6. Meta Profile Process Create Nsfw Process
      7. Meta Profile Process Create Profanity Process
    13. Methods for Webhooks
      1. Webhooks Create
      2. Webhooks Confirm
      3. Webhooks Delete
    14. Methods for Analytics
      1. Analytics Get
  5. Useful
    1. Using with Docker
    2. Testing Webhooks
  6. License

Why Ziggeo's PHP Server Side SDK?

Ziggeo is a powerfull, whitelabel video SAAS with a goal to help people with their video revolution. And what better way to do it than with an award winning multimedia API.

This server side SDK is designed to help you ease the communication with Ziggeo API. In that it allows you to privately communicate between your server and our server through requests of what you want to happen.

It offers you pre-built functionality to call and manipulate and there are demos in /demos/ directory for you to check out and use as starting point.

Who it is for?

  1. Do you have a system that requires calls to be made which should not be seen on client side?
  2. Want to have an easier time handling the media as it comes to your server?
  3. Want something that is simple and easy to use?
  4. You need some powerful features high end video services provide?

If any of the above is "Yes" then you are in the right place as this SDK is for you!

Prerequisites

Download

You will want to either download the SDK zip file or to pull it in as git repository into your own project.

To clone it you would go into your project folder and then

How to use

To start using the PHP SDK you would need to initialize the Ziggeo class with application token, private token and possibly encryption token. The token and keys can be found within the Ziggeo application once you log into your account, under Overview page.

Dependencies

If you are using Auth tokens you would need to install PHPSeclib library, at least for the client auth tokens to be created.

If you are using Composer, you would do the following steps:

  1. Run composer require phpseclib/phpseclib within the folder
  2. Edit the Ziggeo.php file and add require_once 'vendor/autoload.php'; at the very top. -PHPSeclib

    Client-Side Integration

For the client-side integration, you need to add these assets to your html file:

Then, you need to specify your api token:

You can specify other global options, see here.

To fire up a recorder on your page, add:

To embed a player for an existing video, add:

For the full documentation, please visit ziggeo.com.

Server-Side Integration

Initialize Ziggeo class in your code

You can integrate the Server SDK as follows:

Config is optional and if not specified (recommended), the Config file will be used instead.

Available Methods

Currently available methods are branched off within different categories:

  1. Videos
  2. Streams
  3. Audios
  4. Audio Streams
  5. Authtokens
  6. Application
  7. Effect Profiles
  8. Effect Profile Process
  9. Meta Profiles
  10. Meta Profile Process
  11. Webhooks
  12. Analytics

Each of this sections has their own actions and they are explained bellow

Videos

The videos resource allows you to access all single videos. Each video may contain more than one stream.

Index

Query an array of videos (will return at most 50 videos by default). Newest videos come first.

Arguments

Count

Get the video count for the application.

Arguments

Get

Get a single video by token or key.

Get Bulk

Get multiple videos by tokens or keys.

Arguments

Stats Bulk

Get stats for multiple videos by tokens or keys.

Arguments

Download Video

Download the video data file

Download Image

Download the image data file

Get Stats

Get the video's stats

Push To Service

Push a video to a provided push service.

Arguments

Apply Effect

Apply an effect profile to a video.

Arguments

Apply Meta

Apply a meta profile to a video.

Arguments

Update

Update single video by token or key.

Arguments

Update Bulk

Update multiple videos by token or key.

Arguments

Delete

Delete a single video by token or key.

Create

Create a new video.

Arguments

Analytics

Get analytics for a specific videos with the given params

Arguments

Streams

The streams resource allows you to directly access all streams associated with a single video.

Index

Return all streams associated with a video

Arguments

Get

Get a single stream

Download Video

Download the video data associated with the stream

Download Image

Download the image data associated with the stream

Push To Service

Push a stream to a provided push service.

Arguments

Delete

Delete the stream

Create

Create a new stream

Arguments

Attach Image

Attaches an image to a new stream. Must be attached before video, since video upload triggers the transcoding job and binds the stream

Arguments

Attach Video

Attaches a video to a new stream

Arguments

Attach Subtitle

Attaches a subtitle to the stream.

Arguments

Audios

The audios resource allows you to access all single audios. Each video may contain more than one stream.

Index

Query an array of audios (will return at most 50 audios by default). Newest audios come first.

Arguments

Count

Get the audio count for the application.

Arguments

Get

Get a single audio by token or key.

Get Bulk

Get multiple audios by tokens or keys.

Arguments

Download Audio

Download the audio data file

Update

Update single audio by token or key.

Arguments

Update Bulk

Update multiple audios by token or key.

Arguments

Delete

Delete a single audio by token or key.

Create

Create a new audio.

Arguments

Audio Streams

The streams resource allows you to directly access all streams associated with a single audio.

Index

Return all streams associated with a audio

Arguments

Get

Get a single stream

Download Audio

Download the audio data associated with the stream

Delete

Delete the stream

Create

Create a new stream

Arguments

Authtokens

The auth token resource allows you to manage authorization settings for video objects.

Get

Get a single auth token by token.

Update

Update single auth token by token.

Arguments

Delete

Delete a single auth token by token.

Create

Create a new auth token.

Arguments

Application

The application token resource allows you to manage your application.

Get

Read application.

Update

Update application.

Arguments

Get Stats

Read application stats

Arguments

Effect Profiles

The effect profiles resource allows you to access and create effect profiles for your app. Each effect profile may contain one process or more.

Create

Create a new effect profile.

Arguments

Index

Get list of effect profiles.

Arguments

Get

Get a single effect profile

Delete

Delete the effect profile

Update

Updates an effect profile.

Arguments

Effect Profile Process

The process resource allows you to directly access all process associated with a single effect profile.

Index

Return all processes associated with a effect profile

Arguments

Get

Get a single process

Delete

Delete the process

Create Filter Process

Create a new filter effect process

Arguments

Create Watermark Process

Attaches an image to a new stream

Arguments

Edit Watermark Process

Edits an existing watermark process.

Arguments

Meta Profiles

The meta profiles resource allows you to access and create meta profiles for your app. Each meta profile may contain one process or more.

Create

Create a new meta profile.

Arguments

Index

Get list of meta profiles.

Arguments

Get

Get a single meta profile

Delete

Delete the meta profile

Meta Profile Process

The process resource allows you to directly access all process associated with a single meta profile.

Index

Return all processes associated with a meta profile

Get

Get a single process

Delete

Delete the process

Create Video Analysis Process

Create a new video analysis meta process

Create Audio Transcription Process

Create a new audio transcription meta process

Create Nsfw Process

Create a new nsfw filter meta process

Arguments

Create Profanity Process

Create a new profanity filter meta process

Arguments

Webhooks

The webhooks resource allows you to create or delete webhooks related to a given application.

Create

Create a new webhook for the given url to catch the given events.

Arguments

Confirm

Confirm a webhook using its ID and the corresponding validation code.

Arguments

Delete

Delete a webhook using its URL.

Arguments

Analytics

The analytics resource allows you to access the analytics for the given application

Get

Get analytics for the given params

Arguments

Docker

If you prefer to run this SDK and its demos using Docker, build the image as follows:

You can then run demos as follows:

Webhooks

While you technically do not need this SDK to receive webhooks, we have included a demo for your convenience.

Run as follows:

If you want to use docker, run as follows:

Your local machine needs to be accessible from the internet via port 12345. In most cases, you will be behind a router / NAT, so you will either need to activate some sort of port forwarding or install a local port tunnel like ngrok.

Once such a tunnel is being installed, you can usually tunnel a particular port like 12345 as follows:

The output will then provide you with a particular publicly accessible domain name that you can add to your Ziggeo webhook list:

License

Copyright (c) 2013-2022 Ziggeo

Apache 2.0 License


All versions of ziggeophpsdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
phpseclib/phpseclib Version 2.*
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 ziggeo/ziggeophpsdk contains the following files

Loading the files please wait ....