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

ActiveLibrary[API Development](/categories/api)

fourcoders/latch-sdk-php
========================

PHP SDK for latch API with composer and guzzle

11431PHP

Since Jan 14Pushed 11y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

[![SensioLabsInsight](https://camo.githubusercontent.com/116fd24b6704387be5aaf4393b94aa05564e64ef6ab2520dae98e4370e42adaa/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65333239613363302d303035652d343662332d623137652d3130343462343861393063372f6269672e706e67)](https://insight.sensiolabs.com/projects/e329a3c0-005e-46b3-b17e-1044b48a90c7)

latch-sdk-php
=============

[](#latch-sdk-php)

Latch SDK php with Guzzle.

This library is 100% compatible with proyects with the original latch sdk . The feature of our library is that you can load it with the modern [Composer](http://getcomposer.org) system.

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

[](#installation)

Install via [Composer](http://getcomposer.org)

```
{
    "require": {
        "fourcoders/latch-sdk-php": "dev-master"
    }
}

```

Autoloading
-----------

[](#autoloading)

Composer generates a vendor/autoload.php file. You can simply include this file and you will get autoloading for free.

```
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

### Extract and modify of original php sdk

[](#extract-and-modify-of-original-php-sdk-httpsgithubcomelevenpathslatch-sdk-phpusing-the-sdk-in-php)

Create a Latch object with the "Application ID" and "Secret" previously obtained.

```
	$api = new \Fourcoders\LatchSdk\Latch(APP_ID, APP_SECRET);
```

Optional settings:

```
	$api->setProxy(YOUR_PROXY);
```

Call to Latch Server. Pairing will return an account id that you should store for future api calls

```
     $pairResponse = $api->pair("PAIRING_CODE_HERE");
     $statusResponse = $api->status(ACCOUNT_ID_HERE);
     $unpairResponse = $api->unpair(ACCOUNT_ID_HERE);
```

After every API call, get Latch response data and errors and handle them.

```
     $pairResponse->getData();
     $pairResponse->getError();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/4c29a52411417917ba9b7d027c4bfd9cf16a511422c47d0fff788443da8d62a8?d=identicon)[jorgemarcial](/maintainers/jorgemarcial)

---

Top Contributors

[![jorgemarcial](https://avatars.githubusercontent.com/u/1167867?v=4)](https://github.com/jorgemarcial "jorgemarcial (16 commits)")[![sdeancos](https://avatars.githubusercontent.com/u/1820476?v=4)](https://github.com/sdeancos "sdeancos (13 commits)")[![juanber84](https://avatars.githubusercontent.com/u/2790137?v=4)](https://github.com/juanber84 "juanber84 (7 commits)")

### Embed Badge

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

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

###  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)
