2017 © Pedro Peláez
 

symfony-bundle tmdb-symfony

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

image

rewrewby/tmdb-symfony

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

  • Wednesday, July 26, 2017
  • by rewrewby
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 17 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Description

A Symfony2 Bundle for use together with the wtfzdotnet/php-tmdb-api TMDB Wrapper., (*1)

Installation

Install Composer, (*2)

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

Add the following to your require block in composer.json config, (*3)

"wtfzdotnet/wtfz-tmdb-bundle": "~1.2"

Configuration

Add to your app/config/config.yml the following:, (*4)

wtfz_tmdb:
    api_key: YOUR_API_KEY_HERE

That's all! Fire away!, (*5)

Want to make use of default caching and/or logging?, (*6)

This caching system will adhere to the TMDB API max-age values, if you have different needs like long TTL's you'd have to make your own implementation. We would be happy to intergrate more options, so please contribute., (*7)

wtfz_tmdb:
    api_key: YOUR_API_KEY_HERE
    cache:
        enabled: true
        #path: "%kernel.cache_dir%/tmdb"
    log:
        enabled: true
        #path: "%kernel.logs_dir%/tmdb.log"

Don't need the repositories?, (*8)

You can disable repositories :, (*9)

wtfz_tmdb:
    api_key: YOUR_API_KEY_HERE
    repositories:
        enabled: false

Don't need the twig extension?, (*10)

You can disable the twig extension :, (*11)

wtfz_tmdb:
    api_key: YOUR_API_KEY_HERE
    twig_extension:
        enabled: false

Usage

Obtaining the client, (*12)

$client = $this->get('wtfz_tmdb.client');

Obtaining repositories, (*13)

$movie = $this->get('wtfz_tmdb.movie_repository')->load(13);

An overview of all the repositories can be found in the services configuration repositories.xml., (*14)

There is also a Twig helper that makes use of the Tmdb\Helper\ImageHelper to output urls and html., (*15)

{{ movie.backdropImage|tmdb_image_url }}

{{ movie.backdropImage|tmdb_image_html('original', null, 50)|raw }}

For all all other interactions take a look at wtfzdotnet/php-tmdb-api., (*16)

The Versions

26/07 2017

dev-master

9999999-dev https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

  Sources   Download

MIT

The Requires

 

api php wrapper tv movie tvdb tmdb tv show

12/05 2016

2.0.x-dev

2.0.9999999.9999999-dev https://github.com/rewrewby/tmdb-symfony

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the php-tmdb/api library.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony2 wrapper symfony tv movie tvdb tmdb tv show

12/05 2016
11/03 2016

v2.0.2

2.0.2.0 https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the php-tmdb/api library.

  Sources   Download

MIT

The Requires

 

The Development Requires

api php symfony2 wrapper symfony tv movie tvdb tmdb tv show

11/07 2015

v2.0.1

2.0.1.0 https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the php-tmdb/api library.

  Sources   Download

MIT

The Requires

 

api php symfony2 wrapper symfony tv movie tvdb tmdb tv show

05/04 2015

v2.0.0

2.0.0.0 https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the php-tmdb/api library.

  Sources   Download

MIT

The Requires

 

api php symfony2 wrapper symfony tv movie tvdb tmdb tv show

11/08 2014

v1.2.1

1.2.1.0 https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

  Sources   Download

MIT

The Requires

 

api php wrapper tv movie tvdb tmdb tv show

05/04 2014

v1.1.0

1.1.0.0 https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

  Sources   Download

MIT

The Requires

 

api php wrapper tv movie tvdb tmdb tv show

25/03 2014

v1.0.0

1.0.0.0 https://github.com/wtfzdotnet/php-tmdb-api

Symfony2 Bundle for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

  Sources   Download

MIT

The Requires

 

api php wrapper tv movie tvdb tmdb tv show