PHPackages                             pbmengine/pbm-video-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pbmengine/pbm-video-sdk

ActiveLibrary[API Development](/categories/api)

pbmengine/pbm-video-sdk
=======================

This package is a PHP Rest Client SDK for PBM Video API

1.0.2(3y ago)057MITPHPPHP ^8.0.2

Since Mar 5Pushed 3y agoCompare

[ Source](https://github.com/pbmengine/pbm-video-sdk)[ Packagist](https://packagist.org/packages/pbmengine/pbm-video-sdk)[ Docs](https://github.com/pbmengine/pbm-video-sdk)[ RSS](/packages/pbmengine-pbm-video-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (9)Versions (4)Used By (0)

PHP SDK Rest Client for PBM Video API
=====================================

[](#php-sdk-rest-client-for-pbm-video-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ba3cb48ed6c83ca8ddbe0fb3c6ea9ddfcace85ecbfdc01a25f07c51d9882df49/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70626d656e67696e652f70626d2d766964656f2d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pbmengine/pbm-video-sdk)[![Total Downloads](https://camo.githubusercontent.com/67ee1518cc68c7a42b78aef11d21b7c1fa00dcfcbee214e757e5fa8230154e32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70626d656e67696e652f70626d2d766964656f2d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pbmengine/pbm-video-sdk)

The PHP SDK provides a convenient way to use the PBM video api.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require pbmengine/pbm-video-sdk
```

Usage
-----

[](#usage)

### Prerequisites

[](#prerequisites)

You need an Api Key to use this package!

### Create a project

[](#create-a-project)

You must create a project to use the api. Actually you'll need only 1 project pr application. So store the project\_id somewhere in your config files.

```
$project = video()->createProject(, , data()->id
// your project access key
$project->data()->access_key
// your project secret key
$project->data()->secret_key
// store these values in config/pbm-video.php
```

### Create a template

[](#create-a-template)

A template is a blueprint for each dynamic movie! So if you have several videos in your application, you'll need several templates.

```
// the data to create a template must contain
// please see api documentation for more properties
// movie name and movie project id must be known from isw
$data = [
    'name' => 'super duper video',
    'movie_name' => 'the well known movie name',
    'movie_project_id' => 'the well known movie project id',
    'protection' => true|false // if protected the video is not publicly accessible
];

$template = video()->createTemplate(, array $data);
```

### Check needed params for video

[](#check-needed-params-for-video)

```
$movie = video()->iswProject();
// response is something like this
// important here is the variables -> collection field -> name
[
  "data" => array:4 [
    "id" => "12e2045f-6257-48c7-bdaa-3a975bf74598"
    "created_at" => "2019-11-21T12:42:01+00:00"
    "name" => "video_test_api"
    "dynamic_movies" => array:1 [
      0 => array:9 [
        "seconds" => 10
        "variable_length" => false
        "width" => 1920
        "height" => 1080
        "codec" => "H264/AAC"
        "created_at" => "2019-11-21T12:51:03+00:00"
        "updated_at" => "2020-02-04T16:08:15+00:00"
        "name" => "intro_clip"
        "variables" => array:1 [
          "collection" => array:3 [
            0 => array:4 [
              "num_frames" => 250
              "default_value" => "hintergrund.jpg"
              "name" => "hintergrund"
              "type" => "image"
            ]
            1 => array:4 [
              "num_frames" => 250
              "default_value" => "Mustervorname"
              "name" => "vorname"
              "type" => "text"
            ]
            2 => array:4 [
              "num_frames" => 250
              "default_value" => "Musternachname"
              "name" => "nachname"
              "type" => "text"
            ]
          ]
        ]
      ]
    ]
  ]
]
```

### Create video

[](#create-video)

// you will need the above mentioned params

```
// data should be
$data = [
    'params' => [
        'key1' => 'value',
        'key2' => 'value',
        'key3' => 'value',
    ]
];
$video = video()->createVideo(, , , )
```

### Status of Video

[](#status-of-video)

```
$status = video()->videoStatus(, );
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Total

3

Last Release

1383d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50110897?v=4)[PBM Personal Business Machine AG](/maintainers/pbmengine)[@pbmengine](https://github.com/pbmengine)

---

Tags

pbmPBM Video APIphp-sdk-video-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pbmengine-pbm-video-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/pbmengine-pbm-video-sdk/health.svg)](https://phpackages.com/packages/pbmengine-pbm-video-sdk)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M885](/packages/laravel-socialite)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
