PHPackages                             koxder/unibet-api-client - 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. [Templating &amp; Views](/categories/templating)
4. /
5. koxder/unibet-api-client

ActivePackage[Templating &amp; Views](/categories/templating)

koxder/unibet-api-client
========================

Bundle to consume unibet API.

v1.2(7y ago)1541MITPHPPHP &gt;=5.4

Since Mar 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/koxder/unibetBundle)[ Packagist](https://packagist.org/packages/koxder/unibet-api-client)[ RSS](/packages/koxder-unibet-api-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

UnibetBundle
============

[](#unibetbundle)

Bundle to handle the UNIBET API. More information here:

-

Configuration
-------------

[](#configuration)

You should send as argument these vars when you instance the client.

```
app_key [required] = app key of unibet.

app_id [required] = app id of unibet.

type_of_bet [optional] =
            [ 0 = Only request Match Bets,
              1 = Get all bets for each match
            ]

response    [optional] =
            [ 'json' = Return data in JSON format.
              'xml' = Return data in XML format.
            ]
```

Example
-------

[](#example)

```
use UnibetApiClient\Client;
use UnibetApiClient\NotFoundException;

$client = new Client(["app_key" => "secret_app_key",
                   "app_id" => "secret_api_key",
                   "type_of_bet" => 1,
                   "response" => 'json'
                    ]);

try{
    $bets = $client->getBets('123456677');
    print_r($bets);
}catch (NotFoundException $e){
    print("Resource not found");
}
```

Test Unit
---------

[](#test-unit)

```
docker build -t unibet .
docker run -v $(pwd):/app --rm -it unibet vendor/bin/phpunit tests/UnibetClientTest.php
```

Using docker
------------

[](#using-docker)

```
docker run -v $(pwd):/app --rm -it composer/composer install
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~61 days

Total

3

Last Release

2853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6606bbfb40b11359501978e71fd07421f413f7eea073d9adbce15fb46f79221?d=identicon)[cduran](/maintainers/cduran)

---

Top Contributors

[![cduran433](https://avatars.githubusercontent.com/u/30924464?v=4)](https://github.com/cduran433 "cduran433 (14 commits)")

---

Tags

composerpackagetemplate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koxder-unibet-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/koxder-unibet-api-client/health.svg)](https://phpackages.com/packages/koxder-unibet-api-client)
```

PHPackages © 2026

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