PHPackages                             slvler/tmdb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. slvler/tmdb

ActiveLibrary[API Development](/categories/api)

slvler/tmdb
===========

TMDB.com api service for php

v2.0.0(1y ago)710MITPHPPHP ^8.1

Since Oct 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/slvler/the-movie-database-service)[ Packagist](https://packagist.org/packages/slvler/tmdb)[ Docs](https://github.com/slvler/the-movie-database-service)[ RSS](/packages/slvler-tmdb/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

TMDB service
============

[](#tmdb-service)

[![tests](https://github.com/slvler/tmdb/actions/workflows/tests.yml/badge.svg)](https://github.com/slvler/tmdb/actions/workflows/tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/362da0f53d19524a217fd2d8cf1bdcae0c75c562a87b6057af3409860a21ffa6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c766c65722f746d64622e737667)](https://packagist.org/packages/slvler/tmdb)[![License](https://camo.githubusercontent.com/6efac61fe90969ea552b805747eb188b3559e2c93d2c19558eaafdedb15e8363/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f746d64622f6c6963656e7365)](https://packagist.org/packages/slvler/tmdb)[![Total Downloads](https://camo.githubusercontent.com/c75303d1a0b219d69a73d7d864588e5cff1c57b45bcc73b3c4fbdded65fcbf5f/68747470733a2f2f706f7365722e707567782e6f72672f736c766c65722f746d64622f646f776e6c6f616473)](https://packagist.org/packages/slvler/tmdb)

An api service for tmdb.com

Installation
------------

[](#installation)

To install this package tou can use composer:

```
composer require slvler/tmdb
```

Usage
-----

[](#usage)

- first step is to start client client with required url, version, api key

```
use Slvler\Tmdb\Tmdb;
use Slvler\Tmdb\Factory;

$request = Tmdb::factory()
    ->withBaseUrl('https://api.themoviedb.org/3')
    ->withHttpHeader('Authorization', 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
    ->withPath('movie/11')
    ->make();
```

- response

```
{
  "adult": false,
  "backdrop_path": "/zqkmTXzjkAgXmEWLRsY4UpTWCeo.jpg",
  "belongs_to_collection": {
    "id": 10,
    "name": "Star Wars Collection",
    "poster_path": "/r8Ph5MYXL04Qzu4QBbq2KjqwtkQ.jpg",
    "backdrop_path": "/zZDkgOmFMVYpGAkR9Tkxw0CRnxX.jpg"
  },
  "budget": 11000000,
  "genres": [
    {
      "id": 12,
      "name": "Adventure"
    },
    {
      "id": 28,
      "name": "Action"
    },
    {
      "id": 878,
      "name": "Science Fiction"
    }
  ],
  "homepage": "http://www.starwars.com/films/star-wars-episode-iv-a-new-hope",
  "id": 11,
  "imdb_id": "tt0076759",
  "origin_country": [
    "US"
  ],
  "original_language": "en",
  "original_title": "Star Wars",
  "overview": "Princess Leia is captured and held hostage by the evil Imperial forces in their effort to take over the galactic Empire. Venturesome Luke Skywalker and dashing captain Han Solo team together with the loveable robot duo R2-D2 and C-3PO to rescue the beautiful princess and restore peace and justice in the Empire.",
  "popularity": 91.205,
  "poster_path": "/6FfCtAuVAW8XJjZ7eWeLibRLWTw.jpg",
  "production_companies": [
    {
      "id": 1,
      "logo_path": "/tlVSws0RvvtPBwViUyOFAO0vcQS.png",
      "name": "Lucasfilm Ltd.",
      "origin_country": "US"
    },
    {
      "id": 25,
      "logo_path": "/qZCc1lty5FzX30aOCVRBLzaVmcp.png",
      "name": "20th Century Fox",
      "origin_country": "US"
    }
  ],
  "production_countries": [
    {
      "iso_3166_1": "US",
      "name": "United States of America"
    }
  ],
  "release_date": "1977-05-25",
  "revenue": 775398007,
  "runtime": 121,
  "spoken_languages": [
    {
      "english_name": "English",
      "iso_639_1": "en",
      "name": "English"
    }
  ],
  "status": "Released",
  "tagline": "A long time ago in a galaxy far, far away...",
  "title": "Star Wars",
  "video": false,
  "vote_average": 8.2,
  "vote_count": 20635
}
```

### Testing

[](#testing)

```
vendor\bin\phpunit
```

Credits
-------

[](#credits)

- [slvler](https://github.com/slvler)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/slvler/slvler/blob/main/LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~201 days

Total

5

Last Release

567d ago

Major Versions

v1.1.1 → v2.0.02024-12-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ab8128832fb3e8a0d513453a903d7c49475f5f89dbf7ec39cf1d0518026b7ea?d=identicon)[slvler](/maintainers/slvler)

---

Top Contributors

[![selviler](https://avatars.githubusercontent.com/u/56368718?v=4)](https://github.com/selviler "selviler (61 commits)")

---

Tags

apiapi-restapi-servicephpphp-packagephp7qwertytmdbtmdb-apitmdb-movietmdb-movie-searchtmdb-rest-apiphptmdbmovie service

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slvler-tmdb/health.svg)

```
[![Health](https://phpackages.com/badges/slvler-tmdb/health.svg)](https://phpackages.com/packages/slvler-tmdb)
```

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M318](/packages/openai-php-client)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.7k409.0k6](/packages/theodo-group-llphant)[php-tmdb/api

PHP wrapper for TMDB (TheMovieDatabase) API v3. Supports two types of approaches, one modelled with repositories, models and factories. And the other by simple array access to RAW data from The Movie Database.

435383.9k17](/packages/php-tmdb-api)[wtfzdotnet/php-tmdb-api

PHP wrapper for TMDB (TheMovieDatabase) API v3. Supports two types of approaches, one modelled with repositories, models and factories. And the other by simple array access to RAW data from The Movie Database.

4262.9k](/packages/wtfzdotnet-php-tmdb-api)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

46688.8k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
