PHPackages                             optix/youtube-url-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. optix/youtube-url-parser

ActiveLibrary

optix/youtube-url-parser
========================

0891PHP

Since Oct 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/optixsolutions/youtube-url-parser)[ Packagist](https://packagist.org/packages/optix/youtube-url-parser)[ RSS](/packages/optix-youtube-url-parser/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Youtube Url Parser
==================

[](#youtube-url-parser)

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

[](#installation)

```
composer require optix/youtube-url-parser
```

Usage
-----

[](#usage)

```
use Optix\YoutubeUrlParser\UrlParser;

$parser = new UrlParser('https://www.youtube.com/watch?v=e2SUGfXVy4A');

$parser->isValid(); // true
$parser->getVideoId(); // e2SUGfXVy4A
$parser->getEmbedUrl(); // https://www.youtube.com/embed/e2SUGfXVy4A
```

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

### Embed Badge

![Health badge](/badges/optix-youtube-url-parser/health.svg)

```
[![Health](https://phpackages.com/badges/optix-youtube-url-parser/health.svg)](https://phpackages.com/packages/optix-youtube-url-parser)
```

PHPackages © 2026

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