PHPackages                             f4php/checkmate - 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. [Framework](/categories/framework)
4. /
5. f4php/checkmate

ActiveLibrary[Framework](/categories/framework)

f4php/checkmate
===============

Checkmate is a user verification package for F4, a lightweight web development framework

v0.1.6(4mo ago)046↓100%MITPHP

Since Jul 2Pushed 4mo agoCompare

[ Source](https://github.com/f4php/checkmate)[ Packagist](https://packagist.org/packages/f4php/checkmate)[ RSS](/packages/f4php-checkmate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Overview
========

[](#overview)

Checkmate is a user verification package for [F4](https://github.com/f4php/f4), a lighweight web development framework.

Checkmate uses [Twilio Verify API](https://www.twilio.com/docs/verify/api) by default.

Checkmate implements a very simple `F4\Checkmate\UserVerificationServiceInterface`, so you can create your own drop-in replacement if needed.

Quick Start
===========

[](#quick-start)

```
$ composer require f4php/checkmate

```

SDK Architecture
================

[](#sdk-architecture)

Checkmate uses `Guzzle` to interact with external APIs to send and verify one-time authentication tokens using various channels.

This SDK supports `F4\Checkmate\Adapter\AdapterInterface`, which allows you to add seamless support for virtually any external provider.

The following constants MUST be defined in an F4 environment config class:

```
namespace F4;

class Config extends AbstractConfig
{
    // ...
    public string const CHECKMATE_ADAPTER_CLASS = \F4\Checkmate\Adapter\TwilioAdapter::class; // the default adapter
    public string const CHECKMATE_DEFAULT_CHANNEL = 'email'; // must be one of Adapter's supported channels, see below for channels supported by Twilio
    // ...
}
```

Additionally, [Twilio](https://www.twilio.com/docs/verify/api) integration requires that the following constants MUST be defined in an F4 environment config class:

```
namespace F4;

use F4\Config\SensitiveParameter;

class Config extends AbstractConfig
{
    // ...
    #[SensitiveParameter]
    public string const TWILIO_ACCOUNT_SID = '...';
    #[SensitiveParameter]
    public string const TWILIO_AUTH_TOKEN = '...';
    #[SensitiveParameter]
    public string const TWILIO_VERIFY_SID = '...';
    // ...
}
```

`TwilioAdapter` supports the following channels: `auto`, `call`, `email`, `sms`, `sna`, `whatsapp`.

Simple example
--------------

[](#simple-example)

```
use F4\Checkmate;

$checkmate = new Checkmate();

$checkmate->sendVerificationToken('email@address.com');
$booleanCheckResult = $checkmate->checkVerificationToken('email@address.com', '1234');
```

Advanced example
----------------

[](#advanced-example)

```
use F4\Checkmate;
use F4\Checkmate\Adapter\TwilioAdapter;
use Throwable;

$checkmate = new Checkmate()
  ->withAdapter(new TwilioAdapter()
    ->withOption('accountSid', '...')
    ->withOption('authToken', '...')
    ->withOption('verifySid', '...')
    ->withOption('defaultChannel', 'sms')
    ->on(Throwable::class, function(Throwable $exception) {
      // handle adapter exception
    })
  )
  ->on(Throwable::class, function(Throwable $exception) {
    // handle checkmate exception
  });

$checkmate->sendVerificationToken('+1234567890', 'whatsapp');
$booleanCheckResult = $checkmate->checkVerificationToken('+1234567890', '1234');
```

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance78

Regular maintenance activity

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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 ~32 days

Recently: every ~40 days

Total

6

Last Release

148d ago

### Community

Maintainers

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

---

Top Contributors

[![etranger](https://avatars.githubusercontent.com/u/4062692?v=4)](https://github.com/etranger "etranger (11 commits)")

---

Tags

frameworkuser verificationf4

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/f4php-checkmate/health.svg)

```
[![Health](https://phpackages.com/badges/f4php-checkmate/health.svg)](https://phpackages.com/packages/f4php-checkmate)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[silverstripe/framework

The SilverStripe framework

7213.5M2.5k](/packages/silverstripe-framework)[jrean/laravel-user-verification

User Email Verification For Laravel

865843.6k7](/packages/jrean-laravel-user-verification)

PHPackages © 2026

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