PHPackages                             lucasaba/soccersapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. lucasaba/soccersapi

ActiveLibrary[API Development](/categories/api)

lucasaba/soccersapi
===================

PHP Client for rapidapi.com

v0.1.3(4y ago)122MITPHP

Since Sep 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lucasaba/RapidAPI)[ Packagist](https://packagist.org/packages/lucasaba/soccersapi)[ RSS](/packages/lucasaba-soccersapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

[![UnitTests](https://github.com/lucasaba/RapidAPI/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/lucasaba/RapidAPI/actions/workflows/unit-tests.yml/badge.svg)[![Psalm](https://github.com/lucasaba/RapidAPI/actions/workflows/psalm.yml/badge.svg)](https://github.com/lucasaba/RapidAPI/actions/workflows/psalm.yml/badge.svg)

RapidAPI - PHP Soccer client
============================

[](#rapidapi---php-soccer-client)

[RapidAPI](https://rapidapi.com/hub) offers different kind of api information.

This library is a PHP client for (some) of the [Soccer API](https://rapidapi.com/api-sports/api/api-football/)v3.

Installation
------------

[](#installation)

...package to be published

Usage
-----

[](#usage)

In order to use this library you need to create a [Client](src/Infra/Client.php)

The client needs a [HttpClientInterface](https://github.com/symfony/symfony/blob/5.4/src/Symfony/Contracts/HttpClient/HttpClientInterface.php), a [serializer](https://github.com/schmittjoh/JMSSerializerBundle) and the API Token:

```
$serializer = SerializerBuilder::create()->build();
$client = new Client(HttpClient::create(), $serializer, 'this-is-a-secret-token');
```

Then, you need to feed the client with a request. Request are in the `src/Request`folder.

Each request ha different kind of parameters. You can use autocomplete to have a suggestion of them.

E.g.

```
$request = new LeaguesRequest();
$request->withCountry('Italy')
    ->withSeason(2021)
    ->withType(League::LEAGUE_TYPE_CUP);

$response = $client->get($request, LeaguesResponse::class, true);
```

The second argument of the client `get` method is the expected response type. It is used by the serializer to correctly deserialize the object.

Have fun!
---------

[](#have-fun)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

1697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2db8a3f70246d9372ca6fd2183eb70f35900dde357586c2ca42786d7e2b17abb?d=identicon)[lucasaba](/maintainers/lucasaba)

---

Top Contributors

[![lucasaba](https://avatars.githubusercontent.com/u/206325?v=4)](https://github.com/lucasaba "lucasaba (16 commits)")

---

Tags

apirapidapisoccersoccer-apiapisoccerSoccer apiRapidAPI

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lucasaba-soccersapi/health.svg)

```
[![Health](https://phpackages.com/badges/lucasaba-soccersapi/health.svg)](https://phpackages.com/packages/lucasaba-soccersapi)
```

###  Alternatives

[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)[smnandre/pagespeed-api

PageSpeed Insight PHP Api Client 🚀 Analyse web pages for performances metrics, core web vitals...

1511.5k](/packages/smnandre-pagespeed-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
