Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
composer.phar
composer.lock
.DS_Store
.idea
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,11 @@

[![License](https://poser.pugx.org/php-tmdb/laravel/license.png)](https://packagist.org/packages/php-tmdb/laravel)
[![Build Status](https://travis-ci.org/php-tmdb/laravel.svg)](https://travis-ci.org/php-tmdb/laravel)
[![Code Coverage](https://scrutinizer-ci.com/g/php-tmdb/laravel/badges/coverage.png)](https://scrutinizer-ci.com/g/php-tmdb/laravel/)
[![PHP & HHVM](https://php-eye.com/badge/php-tmdb/laravel/tested.svg)](https://php-eye.com/package/php-tmdb/laravel)

A Laravel package that provides easy access to the [php-tmdb/api](https://github.com/php-tmdb/api) TMDB (The Movie Database) API wrapper.
This package comes with a service provider that configures the `Tmdb\Client` and registers it to the IoC container.
Both Laravel 5 and 4 are supported.

[![Latest Stable Version](https://poser.pugx.org/php-tmdb/laravel/v/stable.svg)](https://packagist.org/packages/php-tmdb/laravel)
[![Latest Unstable Version](https://poser.pugx.org/php-tmdb/laravel/v/unstable.svg)](https://packagist.org/packages/php-tmdb/laravel)
[![Dependency Status](https://www.versioneye.com/php/php-tmdb:laravel/badge?style=flat)](https://www.versioneye.com/php/php-tmdb:laravel)
[![Total Downloads](https://poser.pugx.org/php-tmdb/laravel/downloads.svg)](https://packagist.org/packages/php-tmdb/laravel)

## Looking for maintainers

*We are urgently looking for new mainteners of this library, we need someone that can steer this package in the right direction for the Laravel community, we do not currently have anybody on the `php-tmdb` team that uses laravel on a daily basis. We want the default standards to be met and unit tests to be available just to verify the part of the integration with the framework works. Send an email to `php-laravel@wtfz.net` if you are interested, or are willing to help out.*

## Installation

Install Composer
Expand All @@ -27,16 +16,21 @@ $ 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
Add the following to your `composer.json` config

```
"php-tmdb/laravel": "~1.0"
"repositories": [
{
"type": "vcs",
"url": "https://github.com/vahidzoli/laravel-tmdb"
}
],
```

or just run the following command in your project:

```
composer require php-tmdb/laravel
composer require vahidzoli/laravel-tmdb
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "php-tmdb/laravel",
"name": "vahidzoli/laravel-tmdb",
"description": "Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.",
"keywords": ["Laravel", "tmdb", "api", "php", "wrapper", "movie", "tv", "tv show", "tvdb"],
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion src/Adapters/EventDispatcherAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ abstract class EventDispatcherAdapter implements SymfonyDispatcher
*/
public function dispatch($eventName, Event $event = null)
{
$this->laravelDispatcher->fire($eventName, $event);
$this->laravelDispatcher->dispatch($eventName, $event);
return $this->symfonyDispatcher->dispatch($eventName, $event);
}

Expand Down
9 changes: 8 additions & 1 deletion src/config/tmdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
'enabled' => true,
// Keep the path empty or remove it entirely to default to storage/logs/tmdb.log
'path' => storage_path('logs/tmdb.log')
]
],

/*
* Log
*/
'adapter' => new \Tmdb\HttpClient\Adapter\GuzzleAdapter(new \GuzzleHttp\Client([
'proxy' => ''
]))
],
];