Download the PHP package menincode/yii2-youtube-api without Composer

On this page you can find all versions of the php package menincode/yii2-youtube-api. 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 yii2-youtube-api

Youtube Api for yii2

Youtube api is a yii2 extension to use youtube api as a yii2 component.

this extension access youtube api via oauth, saving the access token and refresh it when expire, so you have to give credentials just once

This extension also contains methods for partners, so you don't have to put your onBehalfContentOwner every single call, and control the youtube partner calls per minute to avoid overflow of limit call per minute

With this extension you can

Also can do partener actions like

Installation

The preferred way to install this extension is through composer.

Usage

Add it to your components

add to your components

and are so important, in one you gonna save your accessToken and another let the component take it.

In the example above, the access token was save it in txt, and in te function to take it return the content of that file.

It's important that you has one parameter ( for example) and always save only .

generate your access token

An advantage of this component is that you only have to generate your access token once.

Create an action in any controller

You can call your action as you want, when has a GET parameter called 'code', you must call , this method create and save the access token and redirect to the url passed as parameter.

To get this action you must do it through , you can use it for example in a tag

for example

The access token'll be saved and you can use the component

Example

You can pass in , the parts that you want, if you don't want the default parts. For more information of every method and how do it, read the PhpDOC of component's methods

Partner

if you want to use the extension as a partner you must indicate your in your config

If you don't know your you can get it with method

Player

This extension include a player in widget format


All versions of yii2-youtube-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
yiisoft/yii2 Version ~2.0.13
google/apiclient Version ^2.0
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 menincode/yii2-youtube-api contains the following files

Loading the files please wait ....