PHPackages                             faytzel/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. [API Development](/categories/api)
4. /
5. faytzel/laravel-latch

ActiveLibrary[API Development](/categories/api)

faytzel/laravel-latch
=====================

Latch integration in Laravel

1.0.0(11y ago)4760[1 issues](https://github.com/faytzel/laravel-latch/issues)MITPHPPHP &gt;=5.3.0

Since May 5Pushed 11y agoCompare

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

READMEChangelog (4)Dependencies (4)Versions (7)Used By (0)

Laravel (4 and 5) Latch Integration
-----------------------------------

[](#laravel-4-and-5-latch-integration)

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

[](#installation)

### Laravel 5

[](#laravel-5)

Require this package in your composer.json and run composer update:

```
"faytzel/laravel-latch": "1.*"

```

After updating composer, add the Service Provider to the providers array in config/app.php

```
'Faytzel\LaravelLatch\LaravelLatchServiceProvider',

```

You add config files.

```
php artisan vendor:publish

```

If you want to use the facade, add this to your facades in config/app.php

```
'Latch' => 'Faytzel\LaravelLatch\Facades\LaravelLatch',

```

### Laravel 4

[](#laravel-4)

Require this package in your composer.json and run composer update:

```
"faytzel/laravel-latch": "0.*"

```

After updating composer, add the Service Provider to the providers array in app/config/app.php

```
'Faytzel\LaravelLatch\LaravelLatchServiceProvider',

```

You add config files.

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

```

If you want to use the facade, add this to your facades in app/config/app.php

```
'Latch' => 'Faytzel\LaravelLatch\Facades\LaravelLatch',

```

Examples
--------

[](#examples)

### Pair with Latch Account

[](#pair-with-latch-account)

```
$token = Input::get('token');

if ($accountId = Latch::pair($token))
{
    // Add account id latch to user table
}
else
{
    echo Latch::error();
}

```

### Check it if locked Latch Account

[](#check-it-if-locked-latch-account)

```
$accountId = 'latch_account_id';

if ( ! Latch::locked($accountId))
{
    // Auth user
}

```

### Check if unlocked Latch Account

[](#check-if-unlocked-latch-account)

```
$accountId = 'latch_account_id';

if (Latch::unlocked($accountId))
{
    // Auth user
}

```

### Unpair Latch Account

[](#unpair-latch-account)

```
$accountId = 'latch_account_id';

if (Latch::unpair($accountId))
{
    // Delete account id latch in user table
}
else
{
    echo Latch::error();
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~98 days

Total

4

Last Release

4096d ago

Major Versions

0.1.2 → 1.0.02015-02-23

### Community

Maintainers

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

---

Top Contributors

[![faytzel](https://avatars.githubusercontent.com/u/1248446?v=4)](https://github.com/faytzel "faytzel (9 commits)")

---

Tags

phpapilaravelsecuritylatch

### Embed Badge

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

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[anahkiasen/flickering

A modern interface for the Flickr API

535.9k1](/packages/anahkiasen-flickering)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.1k3](/packages/dystcz-lunar-api)

PHPackages © 2026

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