Skip to content

arsangamal/movie-seeder

Repository files navigation

MovieSeeder

Seeding movies from TMDB has never been easier

Installation

Note this is package for laravel 5.8


Via Composer

$ composer require arsangamal/movie-seeder

Publish configuration using

php artisan vendor:publish --tag=movie-seeder.config

Usage

Set the desired options you want in {app_root}/config/movie-seeder.php you can set the cron expression to set the schedule, table names and count of movies to import.

Schedule Seeding

in the config/movie-seeder.php set the cron expression that the scheduler will follow

Add the following lines to app/Console/Kernel.php

// get cron expression from config
$expression = config('movie-seeder.configurable_interval_timer');

// register commands to run on schedule
$schedule->command('genre:seed')->cron($expression);
$schedule->command('movie:seed')->cron($expression);

Controller and routes

the package defines /movies endpoint which gets movies listing
you can pass query parameters like category_id=x to filter movies

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages