Download the PHP package kiwilan/php-tmdb without Composer

On this page you can find all versions of the php package kiwilan/php-tmdb. 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 php-tmdb

PHP TMDB

Banner with a lots of movies and TV series in background and PHP TMDB title

php version downloads license tests codecov

PHP wrapper package to interact with the The Movie Database (TMDB) API.

[!IMPORTANT] You need to create an account on TMDB and get an API key to use this package. It's free and easy to do, you can read this guide to get started.

[!WARNING] This package is under development.

Requirements

PHP 8.1 and later.

[!NOTE] Package guzzlehttp/guzzle will be installed automatically by Composer.

About

This package uses repository pattern to interact with the TMDB API. Each repository represents an API category like Movies, Search, Trending, etc. And each endpoint of API is a method in repository, like details() for Movies, movie() for Search, all() for Trending, etc. If you know TMDB API, you will understand this package easily.

This is NOT official TMDB API PHP wrapper, you can check php-tmdb/api if you want official package.

Why this package?

All current PHP packages to interact with the TMDB API are not up-to-date and I need a modern and easy-to-use package to interact with the TMDB API. So I decided to create this package. You can check Roadmap to see what I plan to do with this package.

Installation

You can install the package via composer:

Usage of API

Collection

Collection: Details

Get collection details by ID.

Companies

Companies: Details

Get the company details by ID.

Credits

Credits: Details

Get a movie or TV credit details by ID.

Movie Lists

Movie Lists: Now Playing

Get a list of movies that are currently in theatres.

Movie Lists: Popular

Get a list of movies ordered by popularity.

Movie Lists: Top Rated

Get a list of movies ordered by rating.

Movie Lists: Upcoming

Get a list of movies that are being released soon.

Movies

Movies: Details

Get the top level details of a movie by ID (you can use append_to_response option to get more details).

Networks

Networks: Details

Get the details of a network by ID.

Search

Search: Collection

Search for collections by their original, translated and alternative names.

You can use options into your search:

Search: Movie

Search for movies by their original, translated and alternative titles.

You can use options into your search:

Search: TV

Search for TV shows by their original, translated and also known as names.

You can use options into your search:

Trending

Trending: All

Get the trending movies, TV shows and people.

Trending: Movies

Get the trending movies on TMDB.

Trending: People

Get the trending people on TMDB.

Trending: TV

Get the trending TV shows on TMDB.

TV Series List

TV Series List: Airing Today

Get a list of TV shows airing today.

TV Series List: On The Air

Get a list of TV shows that air in the next 7 days.

TV Series List: Popular

Get a list of TV shows ordered by popularity.

TV Series List: Top Rated

Get a list of TV shows ordered by rating.

TV Series

TV Series: Details

Get the details of a TV show (you can use append_to_response option to get more details).

TV Seasons

TV Seasons: Details

Query the details of a TV season (you can use append_to_response option to get more details).

TV Episodes

TV Episodes: Details

Query the details of a TV episode (you can use append_to_response option to get more details).

Images

For any model with image (poster, backdrop, logo, profile, still), you can use multiple methods:

You can change the size of the image with size option, available for get*Url, get*Image and save*Image methods:

These methods are available for Poster, Backdrop, Logo, Profile and Still.

Append to response

TMDB offers an easy way to get more details with append_to_response option. You can add more data in same request, it's really useful to get all data you need in one request.

append_to_response is an easy and efficient way to append extra requests to any top level namespace. The movie, TV show, TV season, TV episode and person detail methods all support a query parameter called append_to_response. This makes it possible to make sub requests within the same namespace in a single HTTP request. Each request will get appended to the response as a new JSON object. From https://developer.themoviedb.org/docs/append-to-response

To know which methods support append_to_response, check if method has append_to_response parameter (always optional and at the end of parameters). And to know what you can add, check the official documentation.

Example with append_to_response:

Testing

Contributing

A fix? A new feature? A typo? You're welcome to contribute to this project. Just open a pull request.

Roadmap

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

https://github.com/kiwilan/php-tmdb


All versions of php-tmdb with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.9
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 kiwilan/php-tmdb contains the following files

Loading the files please wait ....