vovanmix / laravel4-video-api
Fork of sseffa/laravel-video-api v 1.0 for Laravel 4 with fixed Vimeo links
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/vovanmix/laravel4-video-api
Requires
- php: >=5.4.0
- illuminate/support: 4.*
This package is not auto-updated.
Last update: 2025-10-01 14:10:18 UTC
README
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); });