bstien/laravel-tvdb

A Laravel wrapper for moinax/tvdb.

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/bstien/laravel-tvdb

1.0.0 2015-03-23 22:12 UTC

This package is not auto-updated.

Last update: 2025-09-27 22:59:35 UTC


README

A Laravel 5 wrapper for Moinax/TvDb. See his docs for how to use the TvDb-API.

Install

Put this in your composer.json.

"require": {
    "bstien/laravel-tvdb": "1.0.0"
},
"repositories": [
		{
			"type": "vcs",
			"url": "https://github.com/bstien/laravel-tvdb"
		}
]

Publish the config

php artisan vendor:publish

Enter your API key in the config file config/tvdb.php.
If needed, feel free to alter the either the path or TTL for cache. Please note the cache-path is relative to [app root]/storage and must start with a '/'.

In your config/app.php add TvDbServiceProvider to the array of ServiceProviders.

In order to use this package, you need an API-key from TheTvDb.com.

Usage

use Stien\TvDb\Facades\TvDb;
# You can add this to your Facades under config/app.php if you like

$serie = TvDb::getSerie(75710);
echo $serie->name;