vovanmix/laravel-video-api

Fork of sseffa/laravel-video-api v 1.0 for Laravel 4 with fixed Vimeo links
8 1
Install
composer require vovanmix/laravel-video-api
PHP:>=5.4.0
Last Updated:Jun 12, 2015
Links: GitHub  ·  Packagist
Maintainer: vovanmix

Laravel Video API

Latest Stable Version Total Downloads Coverage Status

Installation

1. Install with Composer

composer require "Vovanmix/video-api": "dev-master"

2. Add to app/config/app.php

    'providers' => array(
        // ...
        'Vovanmix\VideoApi\VideoApiServiceProvider',
    ),

And:

    'aliases' => array(
        // ...
        'VideoApi'          => 'Vovanmix\VideoApi\Facades\VideoApi',
    ),

Usage

<?php

Route::get('video/youtube/{id}', function ($id) {

    //$data = VideoApi::setType('youtube')->getVideoDetail($id); // video detail
    $data = VideoApi::setType('youtube')->getVideoList($id);     // video list

    var_dump($data);
});

Route::get('video/vimeo/{id}', function ($id) {

    //$data = VideoApi::setType('vimeo')->getVideoDetail($id);
    $data = VideoApi::setType('vimeo')->getVideoList($id);

    var_dump($data);
});

Licence

MIT license

Related Packages

maystro/filament-popup-modal

A comprehensive modal dialog system for FilamentPHP with progress bars, callback...

7 1
andhikamaheva/date

A date library to help you work with dates in different languages

13 1
vlados/laravel-blade-crawler-detect

Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...

5,257 0
wobeto/twitter

Laravel 4 Service Provider to interact with twitter account, like return a colle...

135 1