Download the PHP package mikestecker/craft-videoembedder without Composer

On this page you can find all versions of the php package mikestecker/craft-videoembedder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package craft-videoembedder

Video Embedder plugin for Craft CMS 3.x

Craft plugin to generate an embed URL from a YouTube or Vimeo URL. This plugin will be 100% free.

Ported over from Viget's Video Embed plugin for Craft 2.x.

Requirements

This plugin requires Craft CMS 3.0.0 or later.

Installation

To install Video Embedder, follow these steps:

  1. Install with Composer via composer require mikestecker/craft-videoembedder from your project directory
  2. Install plugin in the Craft Control Panel under Settings > Plugins

Video Embedder works on Craft 3.x.

Video Embedder Overview

Video Embedder will take your YouTube or Vimeo URL's and convert the URL into an embed-friendly URL for use inside an iframe tag. Video Embedder also has a variable which will take the same URL and get the thumbnail image URL.

Using Video Embedder

Pass a YouTube or Vimeo URL to the getEmbedUrl variable and an embed URL will be returned. The plugin will check if the URL is valid and allows embedding. If it doesn't, it will return an empty string.

Example:

Output:


New in 1.0.5:

getEmbedUrl will now accept optional parameters to YouTube and Vimeo URL's such as autoplay, rel, etc:


Video Embedder will also pull the largest thumbnail URL from YouTube or Vimeo using the getVideoThumbnail variable.

Output:


New in 1.0.5:

Video Embedder will now generate the iframe code. Simple use the embed variable with your URL. You can also pass in optional parameters to YouTube and Vimeo URL's such as autoplay, rel, etc.

Basic example:

With parameters:

These parameters will simply output at the end of the embed URL string and have only been tested with YouTube and Vimeo. Check with each provider for which parameters are supported.


New in 1.0.9:

Return only the Vimeo or YouTube ID from the URL. This is helpful in use cases such as using it with Plyr

Basic example:

Video Embedder Roadmap

Some things to do, and ideas for potential features:

This is my first plugin and I'm not very experienced with plugin development. Feel free to fork away, add whatever you'd like to see and send me a pull request.

Brought to you by Mike Stecker


All versions of craft-videoembedder with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^3.0.0
embed/embed Version ^3.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mikestecker/craft-videoembedder contains the following files

Loading the files please wait ....