Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Themoviedb Laravel Package

ghanem/themoviedb

Laravel package to seed TheMovieDB top-rated movies and genres into your database. Adds an Artisan command, optional queue support, configurable record count, and a /movies endpoint with customizable prefix/middleware. Supports scheduled runs via Laravel scheduler.

View on GitHub
Deep Wiki
Context7

Laravel Package for Seed themoviedb

Total Downloads

Installation

You can install the package via composer:

composer require ghanem/themoviedb

first you should run migration it will make migration

php artisan migrate

now you need to publish the config file with:

php artisan vendor:publish --provider="Ghanem\Themoviedb\ThemoviedbServiceProvider" --tag="config"

Integration

first you need to create account in themoviedb and submit to get key

in .env add your key

THEMOVIEDB_KEY=5ff64c4b2fa1a61026e627a62XxXxX

Seed Movies

this package create command to seed Movies and Genres

php artisan themoviedb:seed top_rated_movies

to change Number of Records in .env add your num_of_records

THEMOVIEDB_NUM_OF_RECORDS=95

by default 100 recourds

to use laravel Queue to handle the seeder task just enable it in .env:

THEMOVIEDB_ENABLE_QUEUE=true

by default false

Endpoint Movies

you can access Endpoint form

{domian}/movies

if you need add prefix or midlware just open config/themoviedb.php

return [
     ....
    'prefix' => '/',
    'middleware' => ['web'],
];

schedule seed movies

to schedule seed movies we need to use php cron job and laravel Task Scheduling. in app/Console/Kernel.php file's schedule method just add

     $schedule->command('themoviedb:seed top_rated_movies --force')->daily();

and can change daily to ather method that laravel accepts here

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log