PHPackages                             jasonadriaan/videocloudanalytics - 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. jasonadriaan/videocloudanalytics

ActiveLibrary[API Development](/categories/api)

jasonadriaan/videocloudanalytics
================================

A simple way to use Brightcove's VideoCloud Analytics API

15[2 PRs](https://github.com/jasonadriaan/videocloudanalytics/pulls)PHP

Since Jul 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/jasonadriaan/videocloudanalytics)[ Packagist](https://packagist.org/packages/jasonadriaan/videocloudanalytics)[ RSS](/packages/jasonadriaan-videocloudanalytics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

A Laravel Wrapper for Brightcove's VideoCloud Analytics API
===========================================================

[](#a-laravel-wrapper-for-brightcoves-videocloud-analytics-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2cdb1646260abb0902d6037d452f3507c09ccfb00a9519e0cb65e794d02a54d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a61736f6e6164726961616e2f766964656f636c6f7564616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jasonadriaan/videocloudanalytics)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3d076025bd94a7595a4ccde3cb4a32e32a809f04f50b0671da427376a04d17af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a61736f6e6164726961616e2f766964656f636c6f7564616e616c79746963732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/jasonadriaan/videocloudanalytics/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/9b551b9829e98a38b90c2614b176787ebf722e0ecd60e6a82e6a73ed04a14ce4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a61736f6e6164726961616e2f766964656f636c6f7564616e616c79746963732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/jasonadriaan/videocloudanalytics/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e7c490771973ea24f653ad51efb7fb459400e742fb9cb364f4e6433853bcf940/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a61736f6e6164726961616e2f766964656f636c6f7564616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jasonadriaan/videocloudanalytics)

This package makes it simple for you to retrieve analytics from Brightcove VideoCloud's Analytics API without having to deal with authentication or repetitive api calls.

Support: Buy me a coffee
------------------------

[](#support-buy-me-a-coffee)

I build and maintain this project in my free time. If it makes your life simpler you can [buy me a coffee](https://buymeacoffee.com/jasonadriaan).

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

[](#installation)

You can install the package via composer:

```
composer require jasonadriaan/videocloudanalytics
```

You will need to publish the config file with:

```
php artisan vendor:publish --tag="videocloudanalytics-config"
```

In your .env file please add the following lines with your API details from Brightcove VideoCloud

```
VIDEOCLOUD_ACCOUNT_ID=xxxxx
VIDEOCLOUD_API_KEY=xxxxx
VIDEOCLOUD_API_SECRET=xxxxx
```

Usage
-----

[](#usage)

I would recommend you go ahead and read the [VideoCloud Analytics API documentation](https://apis.support.brightcove.com/analytics/index.html) to understand the underlying API.

Basic usage within your app would be as follows:

```
use Jasonadriaan\VideoCloudAnalytics\VideoCloudAnalytics;

class main extends Controller
{

    public function index(){

        $videocloud = new VideoCloudAnalytics();
        $items = $videocloud->dimensions('date')
                            ->from('2021-08-04')
                            ->to('2022-01-31')
                            ->fields('date,daily_unique_viewers,video_view')
                            ->sort('date')
                            ->limit(30)
                            ->get();
        return $items;
    }

}
```

Notes:

- The get() method will return a Laravel Collection to make it easier for you to work with the data returned.
- The only required field would be the dimensions field. If you do not provide it the API call will fail.
- For the full Dimension Guide please go read the [official documentation](https://apis.support.brightcove.com/analytics/dimension-guides/index.html).

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jason Adriaan](https://www.jasonadriaan.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/efb5affa53b5e0bcde6d468a9dc7f81cd2a69e7a62120d27aa8f5cf57046c011?d=identicon)[jasonadriaan](/maintainers/jasonadriaan)

---

Top Contributors

[![jasonadriaan](https://avatars.githubusercontent.com/u/1917436?v=4)](https://github.com/jasonadriaan "jasonadriaan (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (11 commits)")

### Embed Badge

![Health badge](/badges/jasonadriaan-videocloudanalytics/health.svg)

```
[![Health](https://phpackages.com/badges/jasonadriaan-videocloudanalytics/health.svg)](https://phpackages.com/packages/jasonadriaan-videocloudanalytics)
```

###  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.9M271](/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)
