Download the PHP package media-manager/media-manager-api-php without Composer

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

Media Manager API - PHP

A PHP library for interacting with the Media Manager APIs.

StyleCI Coverage Status Build Status

Installing

The library can be installed via Composer. Simply include the library in your require block in composer.json.

And then run the composer install

Now you can require the autoload.

Client

You can get your client data by using the getClient method.

Templates

Getting all templates

You can get all templates attached to your account.

Playlists

Getting all playlists

You can get all playlists attached to your account.

Videos

You can get all your videos or a single video.

Getting all videos

Getting a video

External

Media Manager has a number of external APIs. These are mainly used for Javascript based calls, but can still be called via PHP using this library.

Templates

Searching videos

You can search all videos on a given external template. You can pass up to 25 terms to search against (as an array). The search is purformed on titles, descriptions and tags.

Most viewed videos

Recommend videos

You can use the recommend API to get recommendations based on a video you pass.

Latest videos

Get the latest videos on template

Get video on template

Get a video details thats published to template.

Get videos on template

Get all videos on template.

Get audios on template

Get all audios on template.

Playlists

All these playlist APIS will require a templateID also. They allow you filter down videos that appear in a playlist and also a external template.

Get videos in playlist

Get all videos published to a playlist

Get audios in playlist

Get all audios published to a playlist

Get video in playlist

Get video published to a playlist

Get audio in playlist

Get audio published to a playlist

Analytics

You can also query your analytics.

Query Builder

You can also make use of the Query Builder.

You can then pass this into the Query method.

This will perform the most simple query, which would be SHOW Video. You can build on the query builder and add conditions and so on.

The default SHOW is for videos, but you can change it by calling the Show() method.

Adding condition

By default the conditon will use the opreator IS. This can be changed by passing a third parameter.

When you have more than one conditon on a query a operator is used to seperate them. There are two options AND, OR. By default AND is used. This can be changed by setting the Logical method.

Filtering

You can also filter down the content returned by the API.

So this filter allows you to only return videos that are published to a given template. You can continue to add other filters.

So now we only want to return videos that are published to a given template, but also published to a given playlist.

Paging

Some API calls will return paged content. So the getVideos method will be returned as a MediaManager\Pager\Pager object. This can be easily iterated using a simple loop.

Pager filters

Sometimes you may want to change the pager filters. For instance if you wanted to limit the number of items returned.


All versions of media-manager-api-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.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 media-manager/media-manager-api-php contains the following files

Loading the files please wait ....