Read from the package's own PHP files at the commit c6cc29b4b491: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.
RawgFactoryclass"rawg": options api_key (required), user_agent, api ("https://api.rawg.io/api").
3 options · 1 method
RawgProviderclassRAWG's games database with an API key: search, a game's record by its RAWG number or slug with its studios, platforms, scores, and the stores that sell it (/games/{id}/stores), whose links give its Steam number, its itch.io page and its Epic slug.
6 methods
Omniplay\Rawg
RawgFactory class
final class RawgFactory extends ProviderFactory RawgFactory.php:13
"rawg": options api_key (required), user_agent, api ("https://api.rawg.io/api").
Options
| Option | Default | |
|---|---|---|
user_agent | 'omniplay/1.0 (+https://github.com/glitchr-omnisense/omniplay)' | |
api | 'https://api.rawg.io/api' | |
api_key | required |
RawgFactory::__construct()
public function __construct(readonly ?HttpClientInterface $http = null)RawgProvider class
final class RawgProvider implements ProviderInterface, SearchInterface, CatalogueInterface RawgProvider.php:28
RAWG's games database with an API key: search, a game's record by its RAWG number or slug with its studios, platforms, scores, and the stores that sell it (/games/{id}/stores), whose links give its Steam number, its itch.io page and its Epic slug.
RawgProvider::__construct()
public function __construct(readonly JsonClient $json, readonly string $key, readonly string $api = 'https://api.rawg.io/api')RawgProvider::getName()
public function getName(): stringRawgProvider::getTitle()
public function getTitle(): stringRawgProvider::capabilities()
public function capabilities(): CapabilitiesRawgProvider::search()
public function search(Query $query): arrayRawgProvider::game()
public function game(GameRef $ref, ?string $language = null, ?string $country = null): ?Game