{"id":22194336,"url":"https://github.com/vigetlabs/craft-videoembed","last_synced_at":"2025-04-07T12:06:14.096Z","repository":{"id":62544097,"uuid":"42678162","full_name":"vigetlabs/craft-videoembed","owner":"vigetlabs","description":"Craft plugin to generate an embed URL from a YouTube or Vimeo URL.","archived":false,"fork":false,"pushed_at":"2025-02-04T01:22:41.000Z","size":114,"stargazers_count":24,"open_issues_count":0,"forks_count":4,"subscribers_count":26,"default_branch":"v3","last_synced_at":"2025-03-30T12:35:02.336Z","etag":null,"topics":["craft-plugin","craft3","craft4","craft5","craftcms"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vigetlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-17T19:47:37.000Z","updated_at":"2025-02-04T01:20:20.000Z","dependencies_parsed_at":"2024-04-02T17:44:45.393Z","dependency_job_id":"c8a6ef30-a836-4e98-88d5-418ddb579f2b","html_url":"https://github.com/vigetlabs/craft-videoembed","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigetlabs%2Fcraft-videoembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigetlabs%2Fcraft-videoembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigetlabs%2Fcraft-videoembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vigetlabs%2Fcraft-videoembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vigetlabs","download_url":"https://codeload.github.com/vigetlabs/craft-videoembed/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["craft-plugin","craft3","craft4","craft5","craftcms"],"created_at":"2024-12-02T13:12:28.599Z","updated_at":"2025-04-07T12:06:14.069Z","avatar_url":"https://github.com/vigetlabs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Video Embed plugin for Craft CMS 5.x\n\nGenerate an embed URL from a YouTube or Vimeo URL.\n\n## Requirements\n\nThis plugin requires Craft CMS 5.0.0 or later.\n\n## Installation\n\nTo install the plugin, follow these instructions.\n****\n1. Open your terminal and go to your Craft project:\n\n        cd /path/to/project\n\n2. Then tell Composer to load the plugin:\n\n        composer require viget/craft-video-embed\n\n3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Video Embed.\n\n## Using Video Embed\n\nPass a YouTube or Vimeo URL to the `getVideoData` method and a `VideoData` object is returned.\n\nIf the plugin is unable to parse the URL, `null` is returned.\n\n- `type` - If the video is `youtube` or `vimeo`\n- `id` - The ID of the video\n- `image` - The thumbnail of the video (only works for Youtube)\n- `embedUrl` - The URL you would use for the embed\n- `url` - The link to the embedded video\n\n**Example:**\n\n```twig\n{% set video = craft.videoEmbed.getVideoData('https://www.youtube.com/watch?v=6xWpo5Dn254') %}\n\n{% if video %}\n   \u003ciframe src=\"{{ video.embedUrl }}\"\u003e\u003c/iframe\u003e\n{% endif %}\n```\n\n**Output:**\n\n```\n\u003ciframe src=\"//www.youtube.com/embed/6xWpo5Dn254\"\u003e\u003c/iframe\u003e\n```\n\n***\n\n\u003ca href=\"http://code.viget.com\"\u003e\n  \u003cimg src=\"http://code.viget.com/github-banner.png\" alt=\"Code At Viget\"\u003e\n\u003c/a\u003e\n\nVisit [code.viget.com](http://code.viget.com) to see more projects from [Viget.](https://viget.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvigetlabs%2Fcraft-videoembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvigetlabs%2Fcraft-videoembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvigetlabs%2Fcraft-videoembed/lists"}