PHPackages                             xuyonglin/video-info - 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. xuyonglin/video-info

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

xuyonglin/video-info
====================

get video from video sites

010PHP

Since Aug 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/xuyonglin/video-info)[ Packagist](https://packagist.org/packages/xuyonglin/video-info)[ RSS](/packages/xuyonglin-video-info/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Get video info from video sites, support youku yet
==================================================

[](#get-video-info-from-video-sites-support-youku-yet)

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

[](#requirements)

At least php version 5.3 extensions: openssl

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

add

```
"xuyonglin/video-info": "dev-master"
```

to the require section of your composer.json.

How to use
----------

[](#how-to-use)

use videosites\\getvideo;

$url = '[http://v.youku.com/v\_show/id\_XMTYzOTM2MDEyOA==.html?from=y1.3-idx-beta-1519-23042.230771.4-1](http://v.youku.com/v_show/id_XMTYzOTM2MDEyOA==.html?from=y1.3-idx-beta-1519-23042.230771.4-1)';

$m = new getvideo();

$re = $m-&gt;processPage($url);

Results
-------

[](#results)

```
{
    "video_id": "XMTYzOTM2MDEyOA==",
    "title": "致青春 01",
    "length": "2736.19",
    "desc": "“玉面小飞龙”郑微终于如愿考上了青梅竹马林静所在城市的大学。婺源香樟树下，郑微告诉林静这里是她母亲和初恋私定终身的地方，而当郑微返回拿表白定情信物时，香樟树下林父与郑母俩人亲密相处的场景落入了林静眼中。开学后林静未能如约来车站接郑微，师兄张开和许开阳误将她认成校花阮莞。陈孝正被室友恶整，在浴池洗澡时与郑微尴尬相遇，而许开阳为了确认情况闯入澡堂却意外夺走了郑微的初吻。",
    "player": "http://player.youku.com/player.php/sid/XMTYzOTM2MDEyOA==/partnerid/b10ab8588528b1b1/v.swf",
    "tags": "致青春",
    "thumbnail": "http://r1.ykimg.com/054204085788540A6A0A3F0459F14763",
    "category": "电视剧"
}

```

Configuration
-------------

[](#configuration)

nothing now

###  Health Score

20

—

LowBetter than 13% 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/05b8c3c46be1395ab10147b9fda6c703f9ed3168f9894c7398e1ebbf7760a538?d=identicon)[xuyonglin](/maintainers/xuyonglin)

---

Top Contributors

[![xuyonglin](https://avatars.githubusercontent.com/u/9910497?v=4)](https://github.com/xuyonglin "xuyonglin (10 commits)")

### Embed Badge

![Health badge](/badges/xuyonglin-video-info/health.svg)

```
[![Health](https://phpackages.com/badges/xuyonglin-video-info/health.svg)](https://phpackages.com/packages/xuyonglin-video-info)
```

###  Alternatives

[stevegrunwell/time-constants

A series of constants designed to make it easier to express time in PHP applications

28412.8k2](/packages/stevegrunwell-time-constants)[sulu/redirect-bundle

Sulu bundle for managing redirects

22243.9k](/packages/sulu-redirect-bundle)

PHPackages © 2026

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