All Projects → vigetlabs → craft-videoembed

vigetlabs / craft-videoembed

Licence: MIT license
Craft plugin to generate an embed URL from a YouTube or Vimeo URL.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to craft-videoembed

craft-router
A Craft CMS plugin for using URL segments as filtering criteria on an entry query.
Stars: ✭ 21 (-16%)
Mutual labels:  craft-plugin, craft3
Seo
SEO utilities including a unique field type, sitemap & redirect manager
Stars: ✭ 210 (+740%)
Mutual labels:  craft-plugin, craft3
Simplemap
A beautifully simple map field type for Craft CMS.
Stars: ✭ 136 (+444%)
Mutual labels:  craft-plugin, craft3
craft-relabel
Relabel Plugin for Craft
Stars: ✭ 29 (+16%)
Mutual labels:  craft-plugin, craft3
store-hours
Manage business hours with Craft CMS.
Stars: ✭ 60 (+140%)
Mutual labels:  craft-plugin, craft3
Craft Preparse Field
Field type that parses twig when an element is saved.
Stars: ✭ 103 (+312%)
Mutual labels:  craft-plugin, craft3
craft3-forms
This craft CMS 3 form plugin makes it easy to create and use custom forms with the features the Yii 2 Framework offers. On top of this, the plugin provides even more functionalities for easy implementation of forms in twig templates.
Stars: ✭ 20 (-20%)
Mutual labels:  craft-plugin, craft3
Upper
Integrates Edge Caches like Fastly, KeyCDN, Cloudflare and Varnish with Craft.
Stars: ✭ 89 (+256%)
Mutual labels:  craft-plugin, craft3
craft-audit
Audit log for Craft 3
Stars: ✭ 18 (-28%)
Mutual labels:  craft-plugin, craft3
Spoon
Spoon plugin for Craft CMS - Enhance your Matrix fields with groups, tabs and more!
Stars: ✭ 82 (+228%)
Mutual labels:  craft-plugin, craft3
craft-react
Client and Server-side React rendering for CraftCMS
Stars: ✭ 40 (+60%)
Mutual labels:  craft-plugin, craft3
craft-typogrify
Typogrify prettifies your web typography by preventing ugly quotes and 'widows' and more
Stars: ✭ 70 (+180%)
Mutual labels:  craft-plugin, craft3
Guest Entries
Accept anonymous entry submissions with Craft.
Stars: ✭ 100 (+300%)
Mutual labels:  craft-plugin, craft3
Plugins
The master list of Craft 3-compatible plugins
Stars: ✭ 111 (+344%)
Mutual labels:  craft-plugin, craft3
Buttonbox
A collection of utility field types for Craft
Stars: ✭ 94 (+276%)
Mutual labels:  craft-plugin, craft3
Commerce
Fully integrated ecommerce for Craft CMS
Stars: ✭ 144 (+476%)
Mutual labels:  craft-plugin, craft3
Aws S3
Amazon S3 volume type for Craft CMS
Stars: ✭ 57 (+128%)
Mutual labels:  craft-plugin, craft3
Generator Craftplugin
generator-craftplugin is a Yeoman generator for Craft CMS plugins
Stars: ✭ 69 (+176%)
Mutual labels:  craft-plugin, craft3
Craft Imageoptimize
Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like Imgix, with zero template changes.
Stars: ✭ 227 (+808%)
Mutual labels:  craft-plugin, craft3
craft-cookies
A simple plugin for setting and getting cookies from within Craft CMS templates.
Stars: ✭ 36 (+44%)
Mutual labels:  craft-plugin, craft3

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-beta or later.

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 viget/craft-video-embed
    
  3. 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 getEmbedUrl method and an embed URL will be returned.

<iframe src="{{ craft.videoEmbed.getEmbedUrl('https://www.youtube.com/watch?v=6xWpo5Dn254') }}"></iframe>

Output:

<iframe src="https://github.com//www.youtube.com/embed/6xWpo5Dn254"></iframe>

Code At Viget

Visit code.viget.com to see more projects from Viget.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].