PHPackages                             virtual-queue/token-verifier-laravel - 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. virtual-queue/token-verifier-laravel

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

virtual-queue/token-verifier-laravel
====================================

SDK to verify virtual queue tokens for Laravel

v0.0.1(1y ago)03MITPHPPHP &gt;=7.4

Since Mar 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/animus-coop/virtual-queue-token-verifier-laravel)[ Packagist](https://packagist.org/packages/virtual-queue/token-verifier-laravel)[ RSS](/packages/virtual-queue-token-verifier-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Virtual Queue Token Verifier SDK for Laravel
============================================

[](#virtual-queue-token-verifier-sdk-for-laravel)

SDK for verifying virtual queue tokens on Laravel projects.

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

[](#installation)

### Installation in Laravel

[](#installation-in-laravel)

1. Add the package to your Laravel project:

    ```
    composer require virtual-queue/token-verifier-laravel
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="VirtualQueue\TokenVerifier\Laravel\TokenVerifierServiceProvider" --tag="config"
    ```
3. Set up the environment variables in your `.env` file:

    ```
    VIRTUAL_QUEUE_BASE_URL=https://app.virtual-queue.com
    VIRTUAL_QUEUE_TIMEOUT=30
    ```

Usage in Laravel
----------------

[](#usage-in-laravel)

You can use the SDK in your Laravel controllers in two ways: via dependency injection or using the Facade.

### Dependency Injection

[](#dependency-injection)

```
use VirtualQueue\TokenVerifier\TokenVerifier;

class YourController extends Controller
{
    protected $tokenVerifier;

    public function __construct(TokenVerifier $tokenVerifier)
    {
        $this->tokenVerifier = $tokenVerifier;
    }

    public function verify($request)
    {
        if($request->token) {
            // For details about the queue:
            $result = $this->tokenVerifier->verifyToken($token);
            // [
            //      'success' => true,
            //      'data' => [
            //           'token': 'f1a10b71-f37d-499f-b30d-7542a7b4f5db',
            //           'finished_line': [
            //               'finished_at': '2024-09-17T09:47:10Z',
            //               'ingressed_at': '2024-09-17T09:15:53Z'
            //       ]
            // ]

            // For true/false
            $result = $this->tokenVerifier->isTokenValid($token);
            // true | false

            //Return error or redirect if token is invalid...
        }

        //Rest of the logic
    }
}
```

### Using the Facade

[](#using-the-facade)

```
use VirtualQueue\TokenVerifier\Laravel\Facades\TokenVerifier;

class YourController extends Controller
{
    public function verify($request)
    {
        if($request->token) {
            // For details about the queue:
            $result = $this->tokenVerifier->verifyToken($token);
            // [
            //      'success' => true,
            //      'data' => [
            //           'token': 'f1a10b71-f37d-499f-b30d-7542a7b4f5db',
            //           'finished_line': [
            //               'finished_at': '2024-09-17T09:47:10Z',
            //               'ingressed_at': '2024-09-17T09:15:53Z'
            //       ]
            // ]

            // For true/false
            $result = $this->tokenVerifier->isTokenValid($token);
            // true | false

            //Return error or redirect if token is invalid...
        }

        //Rest of the logic
    }
}
```

Available Methods
-----------------

[](#available-methods)

### verifyToken(string $token): array

[](#verifytokenstring-token-array)

Verifies a token and returns associated data if valid.

### isTokenValid(string $token): bool

[](#istokenvalidstring-token-bool)

Checks if a token is valid (returns true or false).

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance46

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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

Unknown

Total

1

Last Release

410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37e5e3128f5691a93a51774cafd46da7d4b84f9d1e841df65b0be638c0c932c7?d=identicon)[Animus Coop](/maintainers/Animus%20Coop)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/virtual-queue-token-verifier-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/virtual-queue-token-verifier-laravel/health.svg)](https://phpackages.com/packages/virtual-queue-token-verifier-laravel)
```

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