PHPackages                             chojnicki/video-platforms-parser - 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. [Image &amp; Media](/categories/media)
4. /
5. chojnicki/video-platforms-parser

ActiveLibrary[Image &amp; Media](/categories/media)

chojnicki/video-platforms-parser
================================

Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.

v1.4.2(1y ago)22226.4k↓36.7%19[1 PRs](https://github.com/chojnicki/video-platforms-parser/pulls)MITPHPPHP &gt;=7.0

Since Apr 14Pushed 1y ago9 watchersCompare

[ Source](https://github.com/chojnicki/video-platforms-parser)[ Packagist](https://packagist.org/packages/chojnicki/video-platforms-parser)[ RSS](/packages/chojnicki-video-platforms-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (15)Used By (0)

Video Platforms Parser
======================

[](#video-platforms-parser)

Video Platforms Parser is easy to use SDK with grabber for multiple platforms at once, like YouTube, Dailymotion, Facebook and more.

Requirements
------------

[](#requirements)

- PHP 7.0 or higher
- Laravel 5.4 or higher (not tested on lower but should work on 5.\*)

Supported platforms
-------------------

[](#supported-platforms)

PlatformWith APIWithout APIYouTubeYES (key required)YESDailymotionYESYESFacebook(not ready)YESTwitterYES (key required)YESLiveLeakNO APIYESCDANO APIYESVimeoYESYESStreamableYESYES- With API - parser is using official API (default) - fast and reliable (but YouTube require api key)
- Without API - parser will grab video page and parse required info (needed in platforms that do not provide API or as a backup) - can be slower and less reliable

Every parser that is using API also has parser without API as backup. To use it you need to disable API for selected platform in config (not recommended).

Installation with Composer
--------------------------

[](#installation-with-composer)

Simply require package with composer:

```
composer require chojnicki/video-platforms-parser

```

Installation without Composer or Laravel
----------------------------------------

[](#installation-without-composer-or-laravel)

Download zip of this repository and unpack in your PHP project. Require VideoPlatformsParser file:

```
require '/video-platforms-parser/src/VideoPlatformsParser.php';

```

Usage with Laravel
------------------

[](#usage-with-laravel)

Require package with composer:

```
composer require chojnicki/video-platforms-parser

```

Publish config:

```
php artisan vendor:publish --provider="Chojnicki\VideoPlatformsParser\ServiceProvider"

```

Now You can start grabbing info like this:

```
$info = VideoPlatformsParser::get('https://www.youtube.com/watch?v=jofNR_WkoCE');

```

Usage without Laravel but with Composer
---------------------------------------

[](#usage-without-laravel-but-with-composer)

Require Composer to project if it was not required before

```
require_once 'vendor/autoload.php';

```

Create new object:

```
$parser = new Chojnicki\VideoPlatformsParser\VideoPlatformsParser(); // put array config inside

```

Grab video info like this:

```
$info = $parser->get('https://www.youtube.com/watch?v=jofNR_WkoCE');

```

Usage without Laravel and without Composer
------------------------------------------

[](#usage-without-laravel-and-without-composer)

Require parser

```
require '/video-platforms-parser/src/VideoPlatformsParser.php';

```

Manually load parsers for every video platform that will be used

```
require '/video-platforms-parser/src/parsers/YouTube.php';

```

Create new object:

```
$parser = new Chojnicki\VideoPlatformsParser\VideoPlatformsParser(); // put array config inside

```

Grab video info like this:

```
$info = $parser->get('https://www.youtube.com/watch?v=jofNR_WkoCE');

```

Returned data
-------------

[](#returned-data)

For every supported platform parser will return array with:

- id: video ID
- platform: site name
- title: video title
- description: video description
- thumbnail: url for image with highest possible resolution
- tags: array with keywords
- duration: length in seconds (not supported in LiveLeak and Facebook yet [\[more info\]](https://github.com/chojnicki/video-platforms-parser/issues/4))
- api: will be true if official platform API was used and false otherwise

Optional config
---------------

[](#optional-config)

Config is located in video-platforms-parser.php or you can pass array with VideoPlatformsParser object:

Default config:

```
[
    'youtube_api_key' => '',
    'youtube_api_disabled' => false,
    'dailymotion_api_disabled' => false,
    'vimeo_api_disabled' => false,
    'streamable_api_disabled' => false,
    'twitter_api_bearer_token' => '',
    'twitter_api_disabled' => false
]

```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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.

###  Release Activity

Cadence

Every ~154 days

Recently: every ~333 days

Total

14

Last Release

584d ago

PHP version history (2 changes)v1.0.0PHP ^7.0

v1.2.1PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34774522?v=4)[Łukasz Chojnicki](/maintainers/chojnicki)[@chojnicki](https://github.com/chojnicki)

---

Top Contributors

[![chojnicki](https://avatars.githubusercontent.com/u/34774522?v=4)](https://github.com/chojnicki "chojnicki (42 commits)")[![cristianvuolo](https://avatars.githubusercontent.com/u/2281424?v=4)](https://github.com/cristianvuolo "cristianvuolo (2 commits)")[![jochensengier](https://avatars.githubusercontent.com/u/10118729?v=4)](https://github.com/jochensengier "jochensengier (2 commits)")[![ChrisAndreotti-prh](https://avatars.githubusercontent.com/u/77801590?v=4)](https://github.com/ChrisAndreotti-prh "ChrisAndreotti-prh (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

laravelfacebookparservideoyoutubedailymotiongrabberliveleakcda

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chojnicki-video-platforms-parser/health.svg)

```
[![Health](https://phpackages.com/badges/chojnicki-video-platforms-parser/health.svg)](https://phpackages.com/packages/chojnicki-video-platforms-parser)
```

PHPackages © 2026

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