This commit is contained in:
salam committed 2026-06-06 12:01:53 +02:00
1 parent 57c695c247
commit d4dfb9748c
19 files changed
+269 -7252

No files matched your search

@@ -0,0 +1,29 @@
<?php
namespace App\Console\Commands\Grapper;
use App\Console\Commands\Grapper\Sportscore\Helper;
use App\Console\Commands\Nuh;
use App\Models\Sport;
class Sofascore
{
public static $auth_header = [];
public static $base_url = '';
public static $sport = [];
public static function switch()
{
self::$sport = Helper::map();
dd(self::$sport, Nuh::$options);
$debug = Nuh::$options['d'] ?? 0;
$echo_data = Nuh::$options['e'] ?? 0;
$sportmap = Sport::map('logi', 1, [Nuh::$options['sport_id']]);
}
}
@@ -0,0 +1,38 @@
<?php
namespace App\Console\Commands\Grapper\Sportscore;
class Helper
{
// football
// basketball
// tennis
// ice-hockey
// baseball
public static function map()
{
return [
1 => [
'name' => 'Soccer',
'slug' => 'football',
],
2 => [
'name' => 'Basketball',
'slug' => 'basketball',
],
4 => [
'name' => 'Ice Hockey',
'slug' => 'ice-hockey',
],
5 => [
'name' => 'Tennis',
'slug' => 'tennis',
],
64 => [
'name' => 'Baseball',
'slug' => 'baseball',
],
];
}
}
@@ -0,0 +1,14 @@
* Get basic list of league_id for all days in 2026-06
https://www.sofascore.com/api/v1/calendar/2026-06/7200/football/unique-tournaments
* with an ID and the date get all scheduled events for this day
* almost all infos are in this link
https://www.sofascore.com/api/v1/unique-tournament/152/scheduled-events/2026-06-01
* Odds for events get ID from previouse link
https://www.sofascore.com/api/v1/event/15235580/odds/1/all
* All player info in dis link
https://www.sofascore.com/api/v1/event/15235580/lineups
+5
View File
@@ -8,6 +8,7 @@ use App\Console\Commands\Grapper\Betsapi;
use App\Console\Commands\Grapper\Goldbet;
use App\Console\Commands\Grapper\Logifuture;
use App\Console\Commands\Grapper\Magloo;
use App\Console\Commands\Grapper\Sofascore;
use App\Console\Commands\Grapper\TxOdds;
use App\Console\Commands\Services\Services;
use App\Models\Supervisor;
@@ -121,6 +122,10 @@ class Nuh extends Command
// DB MAPPER
AutoMapper::switch();
break;
case 12:
// SOFASCORE
Sofascore::switch();
break;
default:
Notice::note('Provider not defined', 'r', 1);
break;