PHPackages                             mor/yt-check - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mor/yt-check

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mor/yt-check
============

1.0(4y ago)04MITPHP

Since Jul 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mohammadrezahq/Yt-check)[ Packagist](https://packagist.org/packages/mor/yt-check)[ RSS](/packages/mor-yt-check/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

YtCheck
=======

[](#ytcheck)

Check if a youtube video exists.

### Setup:

[](#setup)

Install the package with composer:

```
composer require mor/yt-check

```

### To Use

[](#to-use)

```
use YtCheck\Yt;
```

### Check if the video exists

[](#check-if-the-video-exists)

```
$id = 'BUykFA7FCo4'; // It can be a url.

$isValid = Yt::isValid($id); // True or False
```

### Get some details about the video

[](#get-some-details-about-the-video)

```
$url = 'https://www.youtube.com/shorts/BUykFA7FCo4'; // It can be an id.

$video = Yt::oembed($url);
$title = $video->title;

// OR

$video = new Yt($url);
$title = $video->title; // Returns title
$author_name = $video->author_name;
$author_url = $video->author_url;
$type = $video->type;
$thumbnail_url = $video->thumbnail_url;
$html = $video->html; // Iframe of video
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd6e5b25a5c4ff0268227d156516cc1bd022cb29f31f0f28ae83737e41a1dcff?d=identicon)[mohammadrezahq](/maintainers/mohammadrezahq)

---

Top Contributors

[![mohammadrezahq](https://avatars.githubusercontent.com/u/84364201?v=4)](https://github.com/mohammadrezahq "mohammadrezahq (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mor-yt-check/health.svg)

```
[![Health](https://phpackages.com/badges/mor-yt-check/health.svg)](https://phpackages.com/packages/mor-yt-check)
```

###  Alternatives

[salla/zatca

A helper to generate the QR code and signed it for ZATCA e-invoicing

164449.9k2](/packages/salla-zatca)

PHPackages © 2026

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