PHPackages                             videopreview/videopreview - 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. [Image &amp; Media](/categories/media)
4. /
5. videopreview/videopreview

ActiveLibrary[Image &amp; Media](/categories/media)

videopreview/videopreview
=========================

A Library for Video Preview from YouTube, Vimeo etc.

30JavaScript

Since Apr 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/vs4vijay/videopreview.js)[ Packagist](https://packagist.org/packages/videopreview/videopreview)[ RSS](/packages/videopreview-videopreview/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

videopreview.js
===============

[](#videopreviewjs)

[![Bower version](https://camo.githubusercontent.com/e494f170642b38f8921087dd9b6089af1162d10f47d220be3f5f89dc68a73ecf/68747470733a2f2f62616467652e667572792e696f2f626f2f766964656f707265766965772e706e67)](http://badge.fury.io/bo/videopreview)[![Build Status](https://camo.githubusercontent.com/f3d929258a767b89fe62065db9534d970b76a25f52c729c1caad01a4d37ac568/68747470733a2f2f7472617669732d63692e6f72672f76733476696a61792f766964656f707265766965772e6a732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vs4vijay/videopreview.js)[![Github Release](https://camo.githubusercontent.com/956a47985049e421a67b3cd7672f02e794d5fe6be1508532a82148cd92e8c665/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f76733476696a61792f766964656f707265766965772e737667)](https://travis-ci.org/vs4vijay/videopreview.js)[![Github Tag](https://camo.githubusercontent.com/0f5d2a12b768b8a1e2d67f6728fddf285f9bf83ee207411da60a56829928977c/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f76733476696a61792f766964656f707265766965772e737667)](https://travis-ci.org/vs4vijay/videopreview.js)[![Downloads](https://camo.githubusercontent.com/3859dabc27dd721878239d759afb1e003c22f34fdfdeff4f2f025d5ddaa2c5f9/687474703a2f2f696d672e736869656c64732e696f2f76733476696a61792f646d2f766964656f707265766965772e737667)](https://travis-ci.org/vs4vijay/videopreview.js)[![Version](https://camo.githubusercontent.com/0164dabe77692d9e83977f999e2d003bac16db00cda81ddabcaba217d9280653/687474703a2f2f696d672e736869656c64732e696f2f76733476696a61792f762f766964656f707265766965772e737667)](https://travis-ci.org/vs4vijay/videopreview.js)

A Library for Video Preview from YouTube, Vimeo etc.

This repo is also for distribution on `bower`. The source for this module is in the [main VideoPreview repo](https://github.com/videopreview/videopreview.js).

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

[](#requirements)

- [node](http://nodejs.org)
- [bower](https://github.com/bower/bower)

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

[](#installation)

Install with `bower`:

```
bower install videopreview
```

Add a `` to your `index.html`:

```

```

Documentation
-------------

[](#documentation)

Get YouTube thumbnails from url

```
VideoPreview.getYoutubeThumbnail(url);

```

Get Vimeo thumbnails from url

```
VideoPreview.getVimeoThumbnail(url);

```

Get Thumbnails(YouTube,Vimeo) from url

```
VideoPreview.getThumbnailUrl(url);

```

Get Embedable video(YouTube,Vimeo) link from url

```
VideoPreview.getEmbedLink(url);

```

Example
-------

[](#example)

```
VideoPreview.getThumbnailUrl(url).then(function(data) {
  $scope.videoThumbnailLink = data;
});

```

[![Bitdeli Badge](https://camo.githubusercontent.com/000f94e25bdd19694f850fad3b6693e512bbfd0862abca31f986222644b5c127/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f76733476696a61792f766964656f707265766965772e6a732f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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://avatars.githubusercontent.com/u/216637?v=4)[Vijay Soni](/maintainers/vs4vijay)[@vs4vijay](https://github.com/vs4vijay)

---

Top Contributors

[![vs4vijay](https://avatars.githubusercontent.com/u/216637?v=4)](https://github.com/vs4vijay "vs4vijay (18 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

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