PHPackages                             josmlt/tmdb-laravel-wrapper - 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. [Framework](/categories/framework)
4. /
5. josmlt/tmdb-laravel-wrapper

AbandonedArchivedProject[Framework](/categories/framework)

josmlt/tmdb-laravel-wrapper
===========================

A Laravel wrapper for The Movie Database API

v1.0.0(4y ago)033MITPHPPHP ^7.3|^8.0

Since Jul 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/joslmt/tmdb-laravel-wrapper)[ Packagist](https://packagist.org/packages/josmlt/tmdb-laravel-wrapper)[ RSS](/packages/josmlt-tmdb-laravel-wrapper/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

 [ ![](https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg) ](https://laravel.com) [ ![](https://camo.githubusercontent.com/fa173552fb761ef1576a5029903b52314740703763cadfb24b55eeb37c57e23f/68747470733a2f2f7777772e7468656d6f76696564622e6f72672f6173736574732f322f76342f6c6f676f732f76322f626c75655f7371756172655f322d643533376662323238636633646564393034656630396231333666653366656337323534386562633166656133666262643161643965333633363464623338622e737667) ](https://spoonacular.com/food-api)

The Movie Database Laravel Wrapper
==================================

[](#the-movie-database-laravel-wrapper)

This is a package develop with Laravel 8. It's a Laravel api wrapper to get info about movies, tv shows and more using TMDB Api and Laravel Facades.

Steps to installation 📝
-----------------------

[](#steps-to-installation-memo)

It's necessary to be register in [The Movie Database](https://developers.themoviedb.org/3) and get a valid api key, it just take a moment.

### Package Locally Development ℹ️

[](#package-locally-development-information_source)

We need to create a folder and within it we'll create a Laravel project and clone the repository. Structure similar to this :

```
-- foo
    -- laravel_project
    -- package_laravel

```

After that, open `composer.json` file in our main Laravel project, add :

```
 "require": {
     [. . .]
        "josmlt/tmdb-laravel-wrapper": "dev-master",
    }
"repositories": [
      {
          "type": "path",
          "url": "../tmdb-wrapper"
      }
    ],

```

Now require the package to the project, execute :

```
composer require josmlt/tmdb-laravel-wrapper

```

Then execute, it will publish the config file :

```
php artisan vendor:publish --tag=tmdb

```

Finally we have two options, first we could have a default value of TMDB\_KEY, within `config/tmdb.php` or as well we can add in our `.env` a new environment variable like `TMDB_KEY = ""`

### From Packagist ℹ️

[](#from-packagist-information_source)

```
composer require josmlt/tmdb-laravel-wrapper

```

Now we need to publish the config file :

```
php artisan vendor:publish --tag=tmdb

```

Finally we move into :

```
config/tmdb.php

```

And add our api key from [The Movie Database](https://developers.themoviedb.org/3), or alternative you can create a new environment variable named like `TMDB_KEY`.

How to use it ❓
---------------

[](#how-to-use-it-question)

👉 Get top movies or tv shows.

```
\TMDB::getTop('tv', ['page' => 2]);

```

👉 Get more details about a specific movie, tv shows or an actor, set the last parameter to true and get available videos.

```
\TMDB::getDetails('movie', 3333, true);

```

👉 To search movies, tv shows and people use search method or searchAsync to do an asyncronus search, usefull when you have to send multiple request.

```
\TMDB::searchAsync('person', 'tom'));

```

👉 Discover new movies with the follow method, it's also provided with many filter and sorting options, an example of use.

```
\TMDB::movieDiscover(
    'without_genres' => 28,
    'year' => '2020'
);

```

Testing ✔️
----------

[](#testing-heavy_check_mark)

This package provides tests to get more confident using the package and check if it's possible to add a new feature without broke nothing valuable.

To execute tests :

```
vendor/bin/phpunit tests/Unit/TMDBTest.php

```

[![testingWrapper](https://user-images.githubusercontent.com/64318244/127705577-4ed8475f-c957-4f2e-b39a-fcc3f8ed65a7.PNG)](https://user-images.githubusercontent.com/64318244/127705577-4ed8475f-c957-4f2e-b39a-fcc3f8ed65a7.PNG)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1747d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44ecfccb7af5f537b891cf03b02ed31430b28c86d263b417440721b07fe0ebeb?d=identicon)[joslmt](/maintainers/joslmt)

---

Top Contributors

[![joslmt](https://avatars.githubusercontent.com/u/64318244?v=4)](https://github.com/joslmt "joslmt (9 commits)")

---

Tags

backendfacade-patternlaravellaravel-packagephpphp-wrapperphpapiframeworklaravelwrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/josmlt-tmdb-laravel-wrapper/health.svg)

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

###  Alternatives

[nunomaduro/laravel-desktop-notifier

Send notifications to your desktop from your Laravel commands. An JoliNotif wrapper for Laravel 5.

4781.7M8](/packages/nunomaduro-laravel-desktop-notifier)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

714214.9k8](/packages/nutgram-nutgram)[lanin/laravel-api-debugger

Easily debug your JSON API.

2311.8M](/packages/lanin-laravel-api-debugger)[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[lanin/laravel-api-exceptions

All in one solution for exception for JSON REST APIs on Laravel and Lumen.

40102.4k](/packages/lanin-laravel-api-exceptions)

PHPackages © 2026

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