PHPackages                             mlsapi/mlsapi-php-sdk - 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. mlsapi/mlsapi-php-sdk

AbandonedArchivedLibrary[API Development](/categories/api)

mlsapi/mlsapi-php-sdk
=====================

MLS API PHP Library

v1.0.2(2y ago)114MITPHP

Since Aug 6Pushed 2y agoCompare

[ Source](https://github.com/horisystems/mlsapi-php-sdk)[ Packagist](https://packagist.org/packages/mlsapi/mlsapi-php-sdk)[ Docs](https://horisystems.com/mls-api/)[ RSS](/packages/mlsapi-mlsapi-php-sdk/feed)WikiDiscussions main Synced 1mo ago

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

MLS API PHP Library
===================

[](#mls-api-php-library)

[![Build Status](https://github.com/horisystems/mlsapi-php-sdk/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/horisystems/mlsapi-php-sdk/actions?query=branch%3Amain)[![Latest Stable Version](https://camo.githubusercontent.com/5054d3d90f1975807a9400417679fc87c67b0f975a1cfa0fd3cb9c7999101988/687474703a2f2f706f7365722e707567782e6f72672f6d6c736170692f6d6c736170692d7068702d73646b2f76)](https://packagist.org/packages/mlsapi/mlsapi-php-sdk)[![Total Downloads](https://camo.githubusercontent.com/e88ede49a622f788af39215aa9c80b754a99262a57c197d6fc6c7ea9ce8e324c/68747470733a2f2f706f7365722e707567782e6f72672f6d6c736170692f6d6c736170692d7068702d73646b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/mlsapi/mlsapi-php-sdk)[![License](https://camo.githubusercontent.com/2b96997cf539086cfb7dad754a0f2630b73f2f81c15d3b91df93f187476588a0/68747470733a2f2f706f7365722e707567782e6f72672f6d6c736170692f6d6c736170692d7068702d73646b2f6c6963656e73652e737667)](https://packagist.org/packages/mlsapi/mlsapi-php-sdk)

The library provides convenient access to the MLS API functionality from applications written in the PHP language.

Requirements
------------

[](#requirements)

PHP 7.x.x and later.

Dependencies
------------

[](#dependencies)

The library require the following extensions in order to work properly:

- [`Guzzle`](https://docs.guzzlephp.org/en/stable/)

> If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Development
-----------

[](#development)

Get [Composer](https://formulae.brew.sh/formula/composer). For example, on macOS:

```
brew install composer
```

Install dependencies:

```
composer install
```

Manual Testing
--------------

[](#manual-testing)

Set environment variables in terminal. For example, on macOS:

```
export username="your_username"
export password="your_password"

# The login credentials are for the prototype plan. Rate limiting applies.
```

Execute test:

```
composer update && composer validate
./vendor/bin/phpunit tests
```

Getting Started
---------------

[](#getting-started)

### Install

[](#install)

You can install the library via [Composer](http://getcomposer.org/). Run the following command:

```
composer require mlsapi/mlsapi-php-sdk
```

### Usage

[](#usage)

Simple usage requires you to `init` and `authenticate`.

```
use Mlsapi\Mlsapi\Client;

$sdk = Client::init($config); // guzzle config .
$sdk->authentication($username, $password); // return auth data.
```

Alternatively, you can save the token.

```
$sdk = Client::initWithToken($token);
```

Then, you can call the MLS API endpoint to retrieve data.

```
$sdk->teams()->getAll();
$sdk->teams()->getById($id);

// Additional API Endpoints
//
// teams
// players
// hist
// rtd
// assists
// offence
// topscorer
// fixtures
// standings
// news
```

The MLS API documentation is available [here](https://horisystems.com/mls-api/). If you need further assistance, don't hesitate to [contact us](https://horisystems.com/contact/).

License
-------

[](#license)

This project is licensed under the [MIT License](./LICENSE).

Copyright
---------

[](#copyright)

(c) 2020 - 2024 Hori Systems Limited. All Rights Reserved.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Total

3

Last Release

816d ago

### Community

Maintainers

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

---

Top Contributors

[![0xnu](https://avatars.githubusercontent.com/u/16977112?v=4)](https://github.com/0xnu "0xnu (12 commits)")

---

Tags

apihorisystemsmlsphpphp-librarysdksdk-phpsoccersoccer-analyticssoccer-datasoccer-gamesoccer-matchesapimlshorisystems

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mlsapi-mlsapi-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/mlsapi-mlsapi-php-sdk/health.svg)](https://phpackages.com/packages/mlsapi-mlsapi-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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