PHPackages                             xinax/laravel-latch - 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. xinax/laravel-latch

ActiveLibrary

xinax/laravel-latch
===================

Laravel wrapper for Latch SDK (Second security layer).

214PHP

Since Jul 1Pushed 11y ago1 watchersCompare

[ Source](https://github.com/xinax/laravel-latch)[ Packagist](https://packagist.org/packages/xinax/laravel-latch)[ RSS](/packages/xinax-laravel-latch/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Latch
=============

[](#laravel-latch)

*Laravel package for Latch SDK.*

More info about Latch: Official Latch php SDK:

Install
-------

[](#install)

This package requires Laravel 4.1.\*+

- Add repository to composer.json:

```
    "xinax/laravel-latch": "dev-master"
```

- Update composer:

```
    composer update
```

- Register the service provider in app.php

```
    'Xinax\LaravelLatch\LaravelLatchServiceProvider',
```

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

[](#configuration)

- Publish configuration file:

```
    php artisan config:publish xinax/laravel-latch
```

- Set application ID and secret in:

```
    app/config/packages/xinax/laravel-latch/config.php
```

Usage
-----

[](#usage)

All original method names were kept. Refer to original readme for updated documentation.

#### Pair register

[](#pair-register)

```
    $accountID = LaravelLatch::pair($pairCode);
```

#### Latch status check

[](#latch-status-check)

```
    try{
        LaravelLatch::status($accountID);
    } catch (Xinax\LaravelLatch\Exceptions\ClosedLatchException $e){
        // ... latch protection logic ...
    } catch (Xinax\LaravelLatch\Exceptions\LatchErrorException $e){
        // ... crisis logic (depends of your security policy) ...
    }
```

#### Unpair

[](#unpair)

```
    LaravelLatch::unpair($accountID);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![shaggyz](https://avatars.githubusercontent.com/u/1447280?v=4)](https://github.com/shaggyz "shaggyz (8 commits)")

### Embed Badge

![Health badge](/badges/xinax-laravel-latch/health.svg)

```
[![Health](https://phpackages.com/badges/xinax-laravel-latch/health.svg)](https://phpackages.com/packages/xinax-laravel-latch)
```

PHPackages © 2026

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