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 1mo ago

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity22

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://www.gravatar.com/avatar/291ca73fe7a40fec99b81022f8eb6fa24a94c19cc1483bd44824f2c544643445?d=identicon)[afrancois](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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