Download the PHP package viget/craft-video-embed without Composer
On this page you can find all versions of the php package viget/craft-video-embed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download viget/craft-video-embed
More information about viget/craft-video-embed
Files in viget/craft-video-embed
Download viget/craft-video-embed
More information about viget/craft-video-embed
Files in viget/craft-video-embed
Vendor viget
Package craft-video-embed
Short Description Generate an embed URL from a YouTube or Vimeo URL
License MIT
Package craft-video-embed
Short Description Generate an embed URL from a YouTube or Vimeo URL
License MIT
Please rate this library. Is it a good library?
Informations about the package craft-video-embed
Video Embed plugin for Craft CMS 4.x
Generate an embed URL from a YouTube or Vimeo URL.
Requirements
This plugin requires Craft CMS 4.0.0 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require viget/craft-video-embed
- In the Control Panel, go to Settings → Plugins and click the “Install” button for Video Embed.
Using Video Embed
Pass a YouTube or Vimeo URL to the getVideoData
method and a VideoData
object is returned.
If the plugin is unable to parse the URL, null
is returned.
type
- If the video isyoutube
orvimeo
id
- The ID of the videoimage
- The thumbnail of the video (only works for Youtube)embedUrl
- The URL you would use for the embedurl
- The link to the embedded video
Example:
Output:
Visit code.viget.com to see more projects from Viget.
All versions of craft-video-embed with dependencies
PHP Build Version
Package Version
Requires
craftcms/cms Version
^4.0.0
The package viget/craft-video-embed contains the following files
Loading the files please wait ....