elsayed85/lara-showbox

dev-main 2023-04-23 23:53 UTC

This package is auto-updated.

Last update: 2024-11-28 14:04:20 UTC


README

Installation

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

notes:

  • 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

Usage

Search

Search

use Elsayed85\Showbox\Api\Search;

$search = Search::get(
    $type = "movie", // movie, tv, all
    $title = "avengers",
    $page = 1,
    $pagelimit = 10
);

top searchs

use Elsayed85\Showbox\Api\Search;

$search = Search::top(
    $type = "movie", // movie, tv
);

Auto Complete

use Elsayed85\Showbox\Api\Search;

$search = Search::autoComplete(
    $title = "avengers",
    $pagelimit = 10
);

Movies

get Single Movie

use Elsayed85\Showbox\Api\Movie;

$movie_id = "14932";
$movie = Movie::get($movie_id);

get Movie download links

use Elsayed85\Showbox\Api\Movie;

$movie_id = "14932";
$movie = Movie::download($movie_id);

get All Movies

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
);

get top lists

use Elsayed85\Showbox\Api\Movie;

$movies = Movie::topLists();

get Top List Content

use Elsayed85\Showbox\Api\Movie;

$list_id = "top_box_office";
$movies = Movie::topList($list_id);

Get Movie Srts (subtitles)

use Elsayed85\Showbox\Api\Movie;

$movie_id = "14932";
$subtitles = Movie::srts($movie_id);

Series

get Single Series

use Elsayed85\Showbox\Api\TV;

$series_id = "578";
$series = TV::get($series_id);

get all Series

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
);

get top lists

use Elsayed85\Showbox\Api\TV;

$series = TV::topLists();

get Top List Content

use Elsayed85\Showbox\Api\TV;

$list_id = "new_tv_tonight";
$series = TV::topList($list_id);

Episodes

get all Episodes

use Elsayed85\Showbox\Api\Episode;

$episodes = Episode::all(
    $tv_id = 578,
    $season = 1,
);

get Episode download links

use Elsayed85\Showbox\Api\Episode;

$episode = Episode::download(
    $tv_id = 578,
    $season = 1,
    $episode = 1,
);

get Episode Srts (subtitles)

use Elsayed85\Showbox\Api\Episode;

$episode = Episode::srts(
    $tv_id = 578,
    $season = 1,
    $episode = 1,
);

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.