PHPackages                             diquinnyonk/vzaar-namespaced - 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. diquinnyonk/vzaar-namespaced

ActiveLibrary[API Development](/categories/api)

diquinnyonk/vzaar-namespaced
============================

The PHP client for Vzaar API. Namespaced by diquinnyonk

08101JavaScript

Since Dec 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/diquinnyonk/vzaar-namespaced)[ Packagist](https://packagist.org/packages/diquinnyonk/vzaar-namespaced)[ RSS](/packages/diquinnyonk-vzaar-namespaced/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Everything is as normal with the Vzaar-api-php but have added namespacing. This also means splitting out some of the files, vzaars default layout has a few classes in one file.

So these files are now in their own file and have namespace.

If you are using laravel, you can go with the method of bind the

vzaar API PHP client
--------------------

[](#vzaar-api-php-client)

vzaar API client for PHP developers.

---

> vzaar is the go to video hosting platform for business. Affordable, customizable and secure. Leverage the power of online video and enable commerce with vzaar. For more details and signup please visit

---

\####Using the library

In order to start using vzaar API library

```
require_once 'Vzaar.php';

Vzaar::$token = 'VZAAR_API_TOKEN';
Vzaar::$secret = 'VZAAR_USERNAME';
```

In order to use vzaar API, you need to have a valid user name and API token that you can get from your vzaar dashboard at

The very next thing you would want to do is to check if your account actually works and operational and you can do it by simple calling *whoAmI*:

```
echo(Vzaar::whoAmI());
```

If it returns you your vzaar username, - we are good to go.

\####User Details

> This API call returns the user's public details along with it's relevant metadata. It also contains vzaar Account ID that you can use in *getAccountDetails* call.

```
print_r(Vzaar::getUserDetails('VZAAR_USERNAME'));
```

Where *VZAAR\_USERNAME* is the vzaar username. Result of this call will be an object of UserDetails type.

\####Account Details

> This API call returns the details and rights for each vzaar subscription account type along with it's relevant metadata. This will show the details of the packages available here:

```
print_r(Vzaar::getAccountDetails(VZAAR_ACCOUNT_ID));
```

Where *VZAAR\_ACCOUNT\_ID* is the unique account id assigned by vzaar.

Result of this call will be an object of AccountDetails type.

\####Video List

> This API call returns a list of the user's active videos along with it's relevant metadata. 20 videos are returned by default, but this is customizable.

```
print_r(Vzaar::getVideoList('VZAAR_USERNAME', true, 10));
```

\####Video Details

> This API call returns metadata about selected video, like its dimensions, thumbnail information, author, duration, play count and so on.

```
print_r(Vzaar::getVideoDetails(VZAAR_VIDEO_ID, true));
```

Where *VZAAR\_VIDEO\_ID* is unique vzaar video ID assigned to a video after its processing.

\####Upload Signature

> In some cases you might need to not perform actual uploading from API but to use some third-party uploaders, like S3\_Upload widget, or any other, so you would need to get only upload signature for it.

```
print_r(Vzaar::getUploadSignature());
```

\####Uploading video

> Upload video from local drive directly to Amazon S3 bucket. Use this method when you build desktop apps or when you upload videos to vzaar directly from your server.

```
$filename = '548.mov'; // the file must be located in the same directory as the script. If not use full disk path

$file = getcwd() . '\\' . $filename;
echo('file to upload: ' . $file);
$result=Vzaar::uploadVideo($file);
echo($result);
```

\####Uploading thumbnails

> Upload thumbnails for a video by using the video id.

```
$video_id = 123;

$thumb_path = "/home/herk/my_image.jpg";
echo('uploading thumbnail for video:' . $video_id . ', file path:' . $thumb_path);
$result=Vzaar::uploadThumbnail($video_id, $thumb_path);
echo($result);
```

\####Uploading thumbnails

> Generate thumbnail based on frame time.

```
$video_id = 123;

$result=Vzaar::generateThumbnail($video_id, 3);
echo($result);
```

\####Uploading videos using urls

> Uploading a new video or replacing an existing one from an url

```
$url = "http://www.mywebsite.com/my_video.mp4";
echo('uploading video from url: ' . $url);
$video_id=Vzaar::uploadLink($url);
echo($video_id);
```

\####Processing video

> This API call tells the vzaar system to process a newly uploaded video. This will encode it if necessary and then provide a vzaar video ID back.

```
$apireply = Vzaar::processVideo(GUID, VIDEO_TITLE, VIDEO_DESCRIPTION, VIDEO_LABELS, Profile::Original);
echo($apireply)
```

You would need to pass following parameters to this API function:

- *GUID* (string) - Specifies the guid to operate on
- *VIDEO\_TITLE* (string) - Specifies the title for the video
- *VIDEO\_DESCRIPTION* (string) - Specifies the description for the video
- *PROFILE* (integer) - Specifies the size for the video to be encoded in. If not specified, this will use the vzaar default or the user default (if set)
- *VIDEO\_LABELS* (string) - Comma separated list of labels to be assigned to the video

\####Editing video

> This API call allows a user to edit or change details about a video in the system.

```
$apiresult = Vzaar::editVideo(VIDEO_ID, VIDEO_TITLE, VIDEO_DESCRIPTION, MARK_AS_PRIVATE);
```

The following arguments should be passed to the method:

- *VIDEO\_ID* (integer) - Unique vzaar Video ID of the video you are going to modify
- *VIDEO\_TITLE* (string) - Specifies the new title for the video
- *VIDEO\_DESCRIPTION* (string) - Specifies the new description for the video
- *MARK\_AS\_PRIVATE* (boolean) (true|false) - Marks the video as private or public

\####Deleting video

> This API call allows you to delete a video from your account. If deletion was successful it will return you *true* otherwise *false*.

```
$apiresult = Vzaar::deleteVideo(VZAAR_VIDEO_ID);
```

Where VZAAR\_VIDEO\_ID is unique vzaar video ID assigned to a video after its processing.

### License

[](#license)

Released under the [MIT License](http://www.opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d57d894ba0314a0f0d2e111c238b1ad5176152ebf5de1052b90964cccdeda24?d=identicon)[diquinnyonk](/maintainers/diquinnyonk)

---

Top Contributors

[![diquinnyonk](https://avatars.githubusercontent.com/u/3680719?v=4)](https://github.com/diquinnyonk "diquinnyonk (10 commits)")

### Embed Badge

![Health badge](/badges/diquinnyonk-vzaar-namespaced/health.svg)

```
[![Health](https://phpackages.com/badges/diquinnyonk-vzaar-namespaced/health.svg)](https://phpackages.com/packages/diquinnyonk-vzaar-namespaced)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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