Download the PHP package evinkuraga/tmdb-laravel without Composer

On this page you can find all versions of the php package evinkuraga/tmdb-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tmdb-laravel

This is an updated fork from php-tmdb

This is a fork of the package php-tmdb/laravel. Instead of waiting for the maintainer to update the php-tmdb/api package to reflect the latest changes from the API, I've decided to fix these. These packages are actively used for http://flixi.com, which means these we will be most likely maintaining these with regular updates as the TMDB api integrates new changes. Original Description: Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

Laravel Package for TMDB API Wrapper

License Build Status Code Coverage PHP & HHVM

A Laravel package that provides easy access to the 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 Latest Unstable Version Dependency Status Total Downloads

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 [email protected] if you are interested, or are willing to help out.

Installation

Install Composer

Add the following to your require block in composer.json config

or just run the following command in your project:

Configuration

Add to your app/config/app.php (Laravel 4) or config/app.php (Laravel <5.5) the service provider:

Then publish the configuration file:

Laravel 4

Laravel 5

Next you can modify the generated configuration file tmdb.php accordingly.

That's all! Fire away!

Usage

We can choose to either use the Tmdb Facade, or to use dependency injection.

Facade example

The example below shows how you can use the Tmdb facade. If you don't want to keep adding the use Tmdb\Laravel\Facades\Tmdb; statement in your files, then you can also add the facade as an alias in config/app.php file.

Dependency injection example

Listening to events

We can easily listen to events that are dispatched using the Laravel event dispatcher that we're familiar with. The following example listens to any request that is made and logs a message.

In Laravel 5 instead of using the Event facade we could also have used the EventServiceProvider to register our event listener.

Image helper

You can easily use the ImageHelper by using dependency injection. The following example shows how to show the poster image of the 20 most popular movies.

The Configuration used by the Tmdb\Helper\ImageHelper is automatically loaded by the IoC container. If you are a Laravel 5.1 user you could also use the blade's @inject functionality,

Registering plugins

Plugins can be registered in a service provider using the boot() method.

For all all other interactions take a look at php-tmdb/api.


All versions of tmdb-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
illuminate/support Version ~7.0 || ~6.0 || ~5.0 || ~4.0
evinkuraga/tmdb-api Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package evinkuraga/tmdb-laravel contains the following files

Loading the files please wait ....