Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Crawlora Flashscore PHP client

This package calls the Crawlora hosted API at https://api.crawlora.net/api/v1. It does not call or scrape Flashscore directly. Requests require a Crawlora API key and use your Crawlora account's service plan.

Install

composer require crawlora/flashscore

Create an account at crawlora.net, open the Crawlora console to get an API key, then set CRAWLORA_API_KEY in your environment.

<?php
require __DIR__ . '/vendor/autoload.php';

$client = new Crawlora\Flashscore\Client(apiKey: getenv('CRAWLORA_API_KEY'));
$result = $client->request("flashscore-search", ['q' => 'football']);
print_r($result);
$client->close();

The client uses PHP cURL and JSON. Constructor options are apiKey, baseUrl, and timeout. Call the operation-specific method for direct access to each supported operation, or request($operationId, $params, $responseType) to dispatch by operation ID. Set $responseType to text for raw text output such as transcript formats. The package includes 54 API operations.

See Crawlora, the API documentation, and the PHP package source. The complete operation and parameter reference is in the platform repository.

Releases

Packages

Contributors

Languages