2017 © Pedro PelĂĄez
 

yii2-extension yii2-themdb

The Movie DB API Client for yii2

image

macklus/yii2-themdb

The Movie DB API Client for yii2

  • Thursday, April 7, 2016
  • by macklus
  • Repository
  • 1 Watchers
  • 1 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

The Movie DB API Client for yii2

The Movie DB API Client for yii2, (*1)

Features

  • Implements most of The Movie DB API methods
  • Respect API limits, and wait if you are near to overpass API limit
  • Simple usage
  • Simple download of related images
  • Log info messages using Yii::info for you to know when sleep due to API limits

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require --prefer-dist macklus/yii2-themdb "*"

or add, (*4)

"macklus/yii2-themdb": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

```php use macklus\themdb\Tmdbapi;, (*7)

class SiteController extends Controller { public function actionTest() { $tmdb = new Tmdbapi(); $tmdb->api_key = 'INSERT_HERE_YOUR_API_KEY'; if ($tmdb->getTvSeason(46952, 3, ['language' => 'es'])) { print_R($tmdb->data); } else { echo 'error'; }, (*8)

    // Find something by his imdb_id
    $tmdb->findByExternal('imdb_id', 'tt0816692', ['language' => 'es']);

}

}```, (*9)

The Versions

07/04 2016

dev-master

9999999-dev

The Movie DB API Client for yii2

  Sources   Download

GPL-3.0+

The Requires

 

by José Pedro Andrés

api extension yii2 the movie db

07/04 2016

1.0.1

1.0.1.0

The Movie DB API Client for yii2

  Sources   Download

GPL-3.0+

The Requires

 

by José Pedro Andrés

api extension yii2 the movie db

17/02 2016

1.0.0

1.0.0.0

The Movie DB API Client for yii2

  Sources   Download

GPL-3.0+

The Requires

 

by José Pedro Andrés

api extension yii2 the movie db