PHPackages                             aodihis/video-utils - 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. aodihis/video-utils

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

aodihis/video-utils
===================

Twig filter to get the video id of youtube or Vimeo URL.

3.0.2(1y ago)25.3k↑250%3[1 issues](https://github.com/aodihis/craftcms-video-utils/issues)1MITPHP

Since Nov 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/aodihis/craftcms-video-utils)[ Packagist](https://packagist.org/packages/aodihis/video-utils)[ RSS](/packages/aodihis-video-utils/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (13)Used By (1)

Get Video Id plugin for Craft CMS
=================================

[](#get-video-id-plugin-for-craft-cms)

Twig filter to get the video id of youtube or Vimeo URL.

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

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require aodihis/video-utils

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Get Video Id.

Using Vide Utils
----------------

[](#using-vide-utils)

To check url is vimeo or youtube.

```
{{ "url"|isYoutube}}
{{ "url"|isVimeo}}
```

To get the video id from the url.

```
{{ "your youtube video url"|getYoutubeId }}
{{ "your Vimeo video url"|getVimeoId }}
```

Also you can do this:

```
{{ "url"|getVideoId }}
```

To generate the embed video url from your video id :

```
{{ "your youtube video url"|generateYoutubeEmbedUrl }}
{{ "your Vimeo video url"|generateVimeoEmbedUrl }}
```

Also you can do this :

`{{ "url"|generateVideoEmbedUrl }}`

if you wanted to get the embedded video with the no cookie :

```
{{ "url"|generateVideoEmbedUrl('no-cookie') }}
{{ "your youtube video url"|generateYoutubeEmbedUrl('no-cookie') }}
{{ "your Vimeo video url"|generateVimeoEmbedUrl('no-cookie') }}

```

To generate youtube live chat url:

`{{ "url"|generateYoutubeLiveChatUrl }}`

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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

Every ~160 days

Recently: every ~197 days

Total

7

Last Release

674d ago

Major Versions

1.0.0 → 2.0.02022-05-10

2.0.2 → 3.0.02024-04-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c1bf9b61975304cef2260d2396498e36e196831939055750941d6596c186dac?d=identicon)[aodihis](/maintainers/aodihis)

---

Top Contributors

[![aodihis](https://avatars.githubusercontent.com/u/18330728?v=4)](https://github.com/aodihis "aodihis (27 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginyoutube idget video idvideo utils

### Embed Badge

![Health badge](/badges/aodihis-video-utils/health.svg)

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

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)

PHPackages © 2026

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