Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sseffa/laravel-video-api
Laravel (Youtube/Vimeo) Video Data API
https://github.com/sseffa/laravel-video-api
laravel laravel-5-package php video-api vimeo youtube
Last synced: 3 months ago
JSON representation
Laravel (Youtube/Vimeo) Video Data API
- Host: GitHub
- URL: https://github.com/sseffa/laravel-video-api
- Owner: sseffa
- License: mit
- Created: 2014-07-27T21:44:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T19:33:46.000Z (almost 8 years ago)
- Last Synced: 2024-09-19T11:41:53.899Z (4 months ago)
- Topics: laravel, laravel-5-package, php, video-api, vimeo, youtube
- Language: PHP
- Homepage: https://packagist.org/packages/sseffa/video-api
- Size: 36.1 KB
- Stars: 54
- Watchers: 8
- Forks: 21
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Laravel Video API
=================[![Latest Stable Version](https://poser.pugx.org/sseffa/video-api/v/stable.png)](https://packagist.org/packages/sseffa/video-api)
[![Total Downloads](https://poser.pugx.org/sseffa/video-api/downloads.png)](https://packagist.org/packages/sseffa/video-api)
[![Build Status](https://travis-ci.org/sseffa/laravel-video-api.svg)](https://travis-ci.org/sseffa/laravel-video-api)## Installation
### 1. Install with Composer
```bash
composer require "sseffa/video-api": "dev-master"
```Laravel | video-api
:---------|:----------
4.x.x | 1.x
5.x.x | 2.x### 2. Add to `app/config/app.php`
```php
'providers' => array(
// ...
'Sseffa\VideoApi\VideoApiServiceProvider',
),
```And:
```php
'aliases' => array(
// ...
'VideoApi' => 'Sseffa\VideoApi\Facades\VideoApi',
),
```## Usage
[Youtube API Key](https://console.developers.google.com)
```php
setKey('api-key')->getVideoDetail($id); // video detail
$data = VideoApi::setType('youtube')->setKey('api-key')->getVideoList($id); // video listvar_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](http://opensource.org/licenses/MIT)