PHPackages                             josip/vidinfo - 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. josip/vidinfo

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

josip/vidinfo
=============

Fetch Video Info From Realms

012PHP

Since Jan 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jopacicdev/vidinfo)[ Packagist](https://packagist.org/packages/josip/vidinfo)[ RSS](/packages/josip-vidinfo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

VidInfo - Oembed Video Info
===========================

[](#vidinfo---oembed-video-info)

[![Build Status](https://camo.githubusercontent.com/ef50e2705639fc8f8f94ae2275a744615c52ee77c67c9a93e49236afaa31f9a0/68747470733a2f2f7472617669732d63692e6f72672f6a6f70616369636465762f766964696e666f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jopacicdev/vidinfo)

Vidinfo package takes `$url` parameter and returns video info via oembed urls from the following service providers:

- YouTube
- Vimeo

Install via Composer
====================

[](#install-via-composer)

```
$ composer require josip/vidinfo
```

### Usage

[](#usage)

Use it in static fashion:

```
\Josip\Vidinfo\Vidinfo::getVideoInfo($url)
```

in order to return array or JSON string, add in the optional second argument:

```
\Josip\Vidinfo\Vidinfo::getVideoInfo($url, $returnType)
```

The `$returnType` var can be: `object`, `array`, `json`. Falls back to `array`.

License
-------

[](#license)

Free as in *free* beer.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cdc3ee3fd4ba6e84bd82db9b35e3c4dce552b72b1a2eb762b0a7773aa3bd3fc?d=identicon)[jopacicdev](/maintainers/jopacicdev)

---

Top Contributors

[![jopacicdev](https://avatars.githubusercontent.com/u/2921997?v=4)](https://github.com/jopacicdev "jopacicdev (9 commits)")

---

Tags

oembedphp

### Embed Badge

![Health badge](/badges/josip-vidinfo/health.svg)

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

###  Alternatives

[fluidtypo3/builder

The builder package from FluidTYPO3

259.6k1](/packages/fluidtypo3-builder)[tajawal/lodash-php

A full-on PHP manipulation utility-belt that provides support for the usual functional.

232.6k1](/packages/tajawal-lodash-php)

PHPackages © 2026

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