2017 © Pedro Peláez
 

library php-youtube-api

PHP wrapper for the Youtube Data API v3

image

madcoda/php-youtube-api

PHP wrapper for the Youtube Data API v3

  • Thursday, May 4, 2017
  • by madcoda
  • Repository
  • 29 Watchers
  • 317 Stars
  • 293,703 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 90 Forks
  • 17 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

php-youtube-api

Build Status, (*1)

A basic PHP wrapper for the Youtube Data API v3 ( Non-OAuth ). Designed to let devs easily fetch public data (Video, Channel, Playlists info) from Youtube. No 3rd party dependancy (except PHPUnit). The reason for returning the decoded JSON response directly, is that you only need to read the Google API doc to use this library, instead of learning my set of API again (Keep it simple)., (*2)

Well.. actually some parameters are missing in this library, because I don't need them at this point. If you desire a particular feature, please file an issue here :), (*3)

Currently I will not consider adding OAuth endpoints. (those required "authorized request" will not be supported), (*4)

Requirements

  • PHP >=5.3
  • CURL extension in PHP

Install

Run the following command in your command line shell for your php project, (*5)

$ composer require madcoda/php-youtube-api:^1.2

Done., (*6)

You may also edit composer.json manually then perform composer update, (*7)

"require": {
    "madcoda/php-youtube-api": "^1.2"
}

Getting started

Please read the wiki on how to use this library with PHP with composer, Laravel 4 and Laravel 5., (*8)

For the functions implemented in this library, please visit API Reference, (*9)

Example usage with pure PHP (with composer)

require 'vendor/autoload.php';
$youtube = new Madcoda\Youtube\Youtube(array('key' => '* Your API key here *'));
$video = $youtube->getVideoInfo('rie-hPVJ7Sw');

Example usage with Laravel 4/5

$video = Youtube::getVideoInfo(Input::get('vid', 'dQw4w9WgXcQ');

Format of returned data

The returned json is decoded as PHP objects (not Array). Please read the "Reference" section of the official API doc., (*10)

YouTube Data API v3

Contact

For bugs, complaints, or suggestions, please file an Issue here or send email to jason@madcoda.com :), (*11)

License

This repo madcoda/php-youtube-api is licensed under the MIT License., (*12)

The Versions

04/05 2017

dev-master

9999999-dev

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

13/04 2017

v1.2.4

1.2.4.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

12/04 2017

v1.2.3

1.2.3.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

27/03 2017

v1.2.2

1.2.2.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

02/11 2016

v1.2.1

1.2.1.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >5.3

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

04/09 2015

1.2

1.2.0.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >5.3

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

14/07 2015

v1.1.1

1.1.1.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >5.3

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

08/04 2015

v1.1

1.1.0.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >5.3

 

The Development Requires

by Avatar madcoda

api video youtube madcoda

07/07 2014

v1.0

1.0.0.0

PHP wrapper for the Youtube Data API v3

  Sources   Download

MIT

The Requires

  • php >5.3

 

The Development Requires

by Avatar madcoda

api video youtube madcoda