PHPackages                             warrant-dev/warrant-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. warrant-dev/warrant-php

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

warrant-dev/warrant-php
=======================

PHP Client SDK for Warrant

v0.1.0(3y ago)79[1 PRs](https://github.com/warrant-dev/warrant-php/pulls)MITPHPPHP &gt;=8.1

Since Sep 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/warrant-dev/warrant-php)[ Packagist](https://packagist.org/packages/warrant-dev/warrant-php)[ RSS](/packages/warrant-dev-warrant-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Warrant PHP SDK
===============

[](#warrant-php-sdk)

Use [Warrant](https://warrant.dev/) in PHP projects.

[![Latest Stable Version](https://camo.githubusercontent.com/5a5999a1fce842fdf36c5cefa3f09ebff7ba12fd7b43035938299cbf4ee032a9/68747470733a2f2f706f7365722e707567782e6f72672f77617272616e742d6465762f77617272616e742d7068702f762f737461626c652e737667)](https://packagist.org/packages/warrant-dev/warrant-php)[![License](https://camo.githubusercontent.com/7d10b044293713e14efa9f1c8156e2576c29419cc0ba885698381e5f937e88e1/68747470733a2f2f706f7365722e707567782e6f72672f77617272616e742d6465762f77617272616e742d7068702f6c6963656e73652e737667)](https://packagist.org/packages/warrant-dev/warrant-php)

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

[](#installation)

Install the SDK using [Composer](https://getcomposer.org/):

```
composer require warrant-dev/warrant-php
```

Include the SDK using Composer's autoload:

```
require_once('vendor/autoload.php');
```

Usage
-----

[](#usage)

Import the Warrant client and pass your API key to the constructor to get started:

```
$warrant = new \Warrant\Client(
    new \Warrant\Config("api_test_f5dsKVeYnVSLHGje44zAygqgqXiLJBICbFzCiAg1E=")
);

$newUser = $warrant->createUser(new \Warrant\User("my-user-id"));
```

We’ve used a random API key in these code examples. Replace it with your [actual publishable API keys](https://app.warrant.dev) to test this code through your own Warrant account.

For more information on how to use the Warrant API, please refer to the [Warrant API reference](https://docs.warrant.dev).

Warrant Documentation
---------------------

[](#warrant-documentation)

- [Warrant Docs](https://docs.warrant.dev/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

1325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec34856c57c2d6f8eb38294690fc3e1bf6f2f693dff9167fb66a414d75b5aff1?d=identicon)[warrant-dev](/maintainers/warrant-dev)

---

Top Contributors

[![akajla09](https://avatars.githubusercontent.com/u/1617774?v=4)](https://github.com/akajla09 "akajla09 (3 commits)")[![kkajla12](https://avatars.githubusercontent.com/u/4977332?v=4)](https://github.com/kkajla12 "kkajla12 (3 commits)")

---

Tags

abacaccess-controlaclauthorizationpermissionsphprbacrole-based-access-control

### Embed Badge

![Health badge](/badges/warrant-dev-warrant-php/health.svg)

```
[![Health](https://phpackages.com/badges/warrant-dev-warrant-php/health.svg)](https://phpackages.com/packages/warrant-dev-warrant-php)
```

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[njoguamos/laravel-turnstile

A laravel wrapper for https://developers.cloudflare.com/turnstile/

2315.9k2](/packages/njoguamos-laravel-turnstile)

PHPackages © 2026

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