Download the PHP package chiiya/tmdb-php without Composer

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

A strongly-typed PHP SDK for the TMDB (The Movie Database) API, providing complete coverage of all non-user related APIv3 endpoints with full type safety and IDE autocompletion support.

Looking for a Laravel package? Check out chiiya/laravel-tmdb.

Index

> Installation
> Quickstart
> Core Concepts
> Repositories
> Query Parameters
> FAQ
> Changelog
> Contributing
> License

Installation

Install the package via Composer:

Requirements

API Token Setup

You need to create a v4 auth token for the TMDB API. You can find it under API > API Read Access Token in your TMDB account settings.

Quick Start

Core Concepts

Architecture

The library follows a repository pattern where each API domain has its own repository class:

Repositories

The library provides repositories for all major TMDB API domains:

MovieRepository

Handles all movie-related API endpoints.

TvShowRepository

Handles all TV show-related API endpoints.

Other Repositories

The library also includes repositories for:

Query Parameters

The library provides type-safe query parameter objects for API requests. All parameters implement the QueryParameterInterface.

Common Parameters

Using Parameters

FAQ

How do I handle API rate limits?

The library handles rate limiting by sleeping for the necessary time (indicated by the retry-after header) when a rate limit error occurs. However, you should ensure your application stays within TMDB's rate limits to avoid hitting them frequently.

Can I use this with Laravel?

Yes, but this is a standalone library. For Laravel integration, check out chiiya/laravel-tmdb.

How do I get streaming provider information?

Use the AppendToResponse::WATCH_PROVIDERS parameter when getting movie or TV show details:

How do I get images with different sizes?

Images are returned with file paths. You need to construct the full URL using TMDB's image base URL:

How do I handle pagination?

List responses include pagination information:

What API endpoints are not covered?

This library covers all non-account-related API endpoints. Specifically excluded are:

Changelog

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

Contributing

Please see CONTRIBUTING for details.

License

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


All versions of tmdb-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
antwerpes/data-transfer-object Version ^1.0
guzzlehttp/guzzle Version ^7.4
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 chiiya/tmdb-php contains the following files

Loading the files please wait ....