You can install the package via composer:
composer require elsayed85/lara-showbox
You can publish the config file with:
php artisan vendor:publish --tag="lara-showbox-config"
This is the contents of the published config file:
<?php
$key = "123d6cedf626dy54233aa1w6";
$iv = "wEiphTn!";
$appId = "com.tdo.showbox";
$appKey = "moviebox";
$servers = [
"showbox" => "https://showbox.shegu.net/api/api_client/index/",
"mbpapi" => "https://mbpapi.shegu.net/api/api_client/index/",
];
$default = [
"page" => 1,
"pagelimit" => 10,
"lang" => "en",
"childmode" => 0,
"server" => "showbox", // showbox, mbpapi
];
return [
"key" => env("SHOWBOX_KEY", $key),
"iv" => env("SHOWBOX_IV", $iv),
"appId" => env("SHOWBOX_APPID", $appId),
"appKey" => env("SHOWBOX_APPKEY", $appKey),
"servers" => $servers,
"default" => [
"page" => $default["page"],
"pagelimit" => env("SHOWBOX_PAGELIMIT", $default["pagelimit"]),
"lang" => env("SHOWBOX_LANG", $default["lang"]),
"childmode" => env("SHOWBOX_CHILDMODE", $default["childmode"]),
"server" => env("SHOWBOX_SERVER", $default["server"]),
]
];
you only need to chnage default values like page, pagelimit ,lang , childmode and server
in env file you can change default values like this
- SHOWBOX_SERVER can be showbox or mbpapi
- SHOWBOX_LANG can be en or ar
- SHOWBOX_CHILDMODE can be 0 or 1
SHOWBOX_PAGELIMIT=15
SHOWBOX_LANG=ar
SHOWBOX_CHILDMODE=1
SHOWBOX_SERVER=mbpapi
use Elsayed85\Showbox\Api\Search;
$search = Search::get(
$type = "movie", // movie, tv, all
$title = "avengers",
$page = 1,
$pagelimit = 10
);
use Elsayed85\Showbox\Api\Search;
$search = Search::top(
$type = "movie", // movie, tv
);
use Elsayed85\Showbox\Api\Search;
$search = Search::autoComplete(
$title = "avengers",
$pagelimit = 10
);
use Elsayed85\Showbox\Api\Movie;
$movie_id = "14932";
$movie = Movie::get($movie_id);
use Elsayed85\Showbox\Api\Movie;
$movie_id = "14932";
$movie = Movie::download($movie_id);
use Elsayed85\Showbox\Api\Movie;
$movies = Movie::all(
$year = 2022,
$category_id = null,
$rating = null,
$quality = null,
$country = null,
$imdbRating = null,
$orderby = null,
$page = 1,
$pagelimit = 10
);
use Elsayed85\Showbox\Api\Movie;
$movies = Movie::topLists();
use Elsayed85\Showbox\Api\Movie;
$list_id = "top_box_office";
$movies = Movie::topList($list_id);
use Elsayed85\Showbox\Api\Movie;
$movie_id = "14932";
$subtitles = Movie::srts($movie_id);
use Elsayed85\Showbox\Api\TV;
$series_id = "578";
$series = TV::get($series_id);
use Elsayed85\Showbox\Api\TV;
$series = TV::all(
$year = 2022,
$category_id = null,
$rating = null,
$quality = null,
$country = null,
$imdbRating = null,
$orderby = null,
$page = 1,
$pagelimit = 10
);
use Elsayed85\Showbox\Api\TV;
$series = TV::topLists();
use Elsayed85\Showbox\Api\TV;
$list_id = "new_tv_tonight";
$series = TV::topList($list_id);
use Elsayed85\Showbox\Api\Episode;
$episodes = Episode::all(
$tv_id = 578,
$season = 1,
);
use Elsayed85\Showbox\Api\Episode;
$episode = Episode::download(
$tv_id = 578,
$season = 1,
$episode = 1,
);
use Elsayed85\Showbox\Api\Episode;
$episode = Episode::srts(
$tv_id = 578,
$season = 1,
$episode = 1,
);
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.