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

ActiveLibrary[API Development](/categories/api)

jlorente/stethome-php-sdk
=========================

A PHP package to access the StethoMe API by a comprehensive way.

v2.0.3(3mo ago)25.7k↓50%1BSD-3-ClausePHPPHP &gt;=5.6

Since Feb 26Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/homedoctor-es/stethome-php-sdk)[ Packagist](https://packagist.org/packages/jlorente/stethome-php-sdk)[ RSS](/packages/jlorente-stethome-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (10)Used By (1)

StethoMe PHP SDK v2
===================

[](#stethome-php-sdk-v2)

A PHP package to access the [StethoMe API](https://stethome.me/docs/api) by a comprehensive way.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

With Composer installed, you can then install the extension using the following commands:

```
$ php composer.phar require jlorente/stethome-php-sdk
```

or add

```
...
    "require": {
        "jlorente/stethome-php-sdk": "*"
    }
```

to the `require` section of your `composer.json` file.

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

[](#configuration)

You can set the STETHOME\_VENDOR\_TOKEN as environment variables or add them later on StethoMe class instantiation.

The name of the environment var is STETHOME\_VENDOR\_TOKEN.

Usage
-----

[](#usage)

Endpoints calls must done through the StethoMe class.

If you haven't set the environment variable previously, remember to provide the key on instantiation.

```
$stethome = new \Jlorente\StethoMe\StethoMe($secretVendorToken);
$stethome->pulmonary()->getVisit($visitId);
```

### Methods

[](#methods)

#### Security

[](#security)

##### getToken

[](#gettoken)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/security/get\_token](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/security/get_token)

Generate client token for end user device.

```
$stethome->security()->getToken();
```

##### postToken

[](#posttoken)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/security/post\_token](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/security/post_token)

Generate client token for end user device, scoped to given visits ids (recommended).

```
$stethome->security()->postToken($params);
```

#### Pulmonary

[](#pulmonary)

##### deleteVisit

[](#deletevisit)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/delete\_pulmonary\_visit\_\_id](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/delete_pulmonary_visit__id)\_

Delete visit recordings.

```
$stethome->pulmonary()->deleteVisit($visitId);
```

##### getVisit

[](#getvisit)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get\_pulmonary\_visit](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit)

Check processing status of all recordings associated with given visit id.

```
$stethome->pulmonary()->getVisit($visitId);
```

##### getPoint

[](#getpoint)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get\_pulmonary\_visit\_\_id\_\_recording\_\_point\_\_check](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__recording__point__check)

Check processing status of single recording associated with given visit id.

```
$stethome->pulmonary()->getPoint($visitId, $point);
```

##### getPointTags

[](#getpointtags)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get\_pulmonary\_visit\_\_id\_\_recording\_\_point\_\_tags](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__recording__point__tags)

Get analysed tags for a single recording from given visit id.

```
$stethome->pulmonary()->getPointTags($visitId, $point);
```

##### getPointWav

[](#getpointwav)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get\_pulmonary\_visit\_\_id\_\_recording\_\_point\_\_wav](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__recording__point__wav)

Get single recording audio file for playback.

```
$stethome->pulmonary()->getPointWav($visitId, $point);
```

##### getVisitId

[](#getvisitid)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get\_pulmonary\_visit](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit)

Generate visit ID. All subsequent client requests will have to send this ID to properly match all recordings to same visit.

```
$stethome->pulmonary()->getVisitId();
```

##### postVisitContent

[](#postvisitcontent)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/post\_pulmonary\_visit\_\_id](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/post_pulmonary_visit__id)\_

Add visit content.

```
$stethome->pulmonary()->postVisitContent($visitId, array $parameters = []);
```

##### copyVisit

[](#copyvisit)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get\_pulmonary\_visit\_\_id\_\_copy](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/get_pulmonary_visit__id__copy)

Create visit copy token.

```
$stethome->pulmonary()->copyVisit($visitId);
```

##### lockVisit

[](#lockvisit)

[https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/post\_pulmonary\_visit\_\_id\_\_lock](https://dev.middleware.stethome.com/docs/?url=/docs/file/v2/swagger.yaml#/pulmonary/post_pulmonary_visit__id__lock)

Lock visit.

```
$stethome->pulmonary()->lockVisit($visitId);
```

License
-------

[](#license)

Copyright © 2020 José Lorente Martín .

Licensed under the BSD 3-Clause License. See LICENSE.txt for details.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance78

Regular maintenance activity

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~307 days

Recently: every ~507 days

Total

8

Last Release

118d ago

Major Versions

1.0.3 → 2.0.02020-07-02

### Community

Maintainers

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

---

Top Contributors

[![jlorente](https://avatars.githubusercontent.com/u/301741?v=4)](https://github.com/jlorente "jlorente (10 commits)")[![miguelgracia](https://avatars.githubusercontent.com/u/3466864?v=4)](https://github.com/miguelgracia "miguelgracia (1 commits)")

---

Tags

phpjlorentestethome

### Embed Badge

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

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

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

574.7M21](/packages/resend-resend-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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