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

AbandonedArchivedPackage[API Development](/categories/api)

sharemat/php-sdk
================

PHP SDK for Sharemat REST API

1445PHP

Since Apr 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sharemat/sharemat-sdk-php)[ Packagist](https://packagist.org/packages/sharemat/php-sdk)[ RSS](/packages/sharemat-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sharemat PHP SDK
================

[](#sharemat-php-sdk)

PHP client for connecting to the Sharemat REST API.

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

[](#requirements)

- PHP 7.0 or greater
- cUrl extension enabled

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

[](#installation)

Use the following Composer command to install the SDK.

```
 $ composer require sharemat/php-sdk
 $ composer update
```

Namespace
---------

[](#namespace)

All the examples below assume the `Sharemat\Php\Sdk\Api` class is imported into the scope with the following namespace declaration:

```
use Sharemat\Sdk\Api;
```

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

[](#configuration)

Provide your credentials to the dot env variables to prepare the API client for connecting to a store on the Sharemat platform:

### Dot env

[](#dot-env)

```
SHAREMAT_API_HOSTNAME=http://api.sharemat.local
SHAREMAT_API_ACCESS_TOKEN=12345
```

Accessing collections and resources (GET)
-----------------------------------------

[](#accessing-collections-and-resources-get)

To list all the resources in a collection:

```
$api = new Api();
$equipments = $api->equipment()->getEquipments();

foreach ($equipments as $equipment) {
	echo $equipment->name;
}
```

To access a single resource and its connected sub-resources:

```
$api = new Api();
$equipment = $api->equipment()->getEquipment(1);

echo $equipment->name;
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29808?v=4)[afrancois](/maintainers/afrancois)[@afrancois](https://github.com/afrancois)

![](https://avatars.githubusercontent.com/u/73989666?v=4)[ShareMat](/maintainers/sharemat)[@sharemat](https://github.com/sharemat)

---

Top Contributors

[![afrancois-lephare](https://avatars.githubusercontent.com/u/68734185?v=4)](https://github.com/afrancois-lephare "afrancois-lephare (10 commits)")[![jeanpascalsharemat](https://avatars.githubusercontent.com/u/95911316?v=4)](https://github.com/jeanpascalsharemat "jeanpascalsharemat (10 commits)")[![alainsharemat](https://avatars.githubusercontent.com/u/73989844?v=4)](https://github.com/alainsharemat "alainsharemat (1 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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