PHPackages                             snowpatch/videoparser - 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. snowpatch/videoparser

ActiveLibrary

snowpatch/videoparser
=====================

Easily get the provider, video ID or embed URL of Youtube or Vimeo videos

00PHP

Since Aug 9Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

VideoParser
===========

[](#videoparser)

[![License: AGPL v3](https://camo.githubusercontent.com/c61341f63648cdd5aba4f7a073b513106a63778c27b15f96c56157642bc943b4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c25323076332d626c75652e737667)](https://www.gnu.org/licenses/agpl-3.0)

Lightweight video parsing library. Easily get the provider, video ID or embed URL of Youtube or Vimeo videos.

Usage
-----

[](#usage)

```
use SnowPatch\VideoParser;

// Get video provider eg. "YouTube"
$provider = VideoParser::getProvider('https://www.youtube.com/watch?v=xLs_Q4Ge7s4');

// Get video ID
$vid = VideoParser::getId('https://www.youtube.com/watch?v=xLs_Q4Ge7s4');

// Get video embed code
$embed = VideoParser::getEmbed('https://www.youtube.com/watch?v=xLs_Q4Ge7s4');
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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/84111efce096c68a773203071fd436bbfe0af7d90273b38727c8d955421ce15c?d=identicon)[SnowPatch](/maintainers/SnowPatch)

---

Top Contributors

[![SnowPatch](https://avatars.githubusercontent.com/u/10814197?v=4)](https://github.com/SnowPatch "SnowPatch (3 commits)")

### Embed Badge

![Health badge](/badges/snowpatch-videoparser/health.svg)

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

PHPackages © 2026

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