thomasboom89 / bundesliga-live-results
这是德国足球甲级联赛和乙级联赛的实时比分抓取器
v0.0.3
2023-02-25 10:32 UTC
Requires
- php: >=8.1
- ext-dom: *
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
- captainhook/captainhook: 5.14.*
- guzzlehttp/guzzle: 7.*
- php-http/mock-client: 1.5.*
- phpmd/phpmd: 2.13.*
- phpstan/phpstan: 1.10.*
- phpunit/phpunit: 10.0.*
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: 3.7.*
- thomasboom89/captainhook-collection: ^0.0.4
- twig/twig: ^3.5
This package is auto-updated.
Last update: 2024-10-01 08:24:16 UTC
README
德国足球甲级联赛和乙级联赛的实时比分抓取器。
注意!
我不是该网站(https://bundesliga.com)的所有者或维护者。这只是一个实时比分抓取器。使用风险自负。
需求
您需要一个具有php <= 8.1和composer的运行环境。
安装
composer require thomasboom89/bundesliga-live-result-scraper
使用方法
创建Bundesliga实例
$httpClient = new Client(); $requestFactory = new HttpFactory(); $bundesliga = new Bundesliga($httpClient, $requestFactory);
现在您可以用它来发起请求
// You can choose between Erste and Zweite Bundesliga $results = $bundesliga->getResults(Bundesliga\LigaType::SecondBundesliga);
您将收到一个结果对象数组
var_dump($results);
许可证
Bundesliga Live Result Scraper版权(C)2023 ThomasBoom89。MIT许可证。
Bundesliga Live Result Scraper包含几个第三方开源库,这些库分别受各自的开源许可证的约束。
请参阅composer license
以获取依赖库的完整列表。