PHPackages                             szabacsik/snowflake-json-web-token - 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. szabacsik/snowflake-json-web-token

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

szabacsik/snowflake-json-web-token
==================================

Snowflake JSON Web Token

1.0.1(3y ago)06.3k—5.6%1MITPHPPHP ^8.0

Since Apr 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/szabacsik/snowflake-json-web-token)[ Packagist](https://packagist.org/packages/szabacsik/snowflake-json-web-token)[ RSS](/packages/szabacsik-snowflake-json-web-token/feed)WikiDiscussions main Synced 1mo ago

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

Snowflake JSON Web Token
========================

[](#snowflake-json-web-token)

Usage
-----

[](#usage)

```
composer require szabacsik/snowflake-json-web-token
```

```
    $token = new \Szabacsik\SnowflakeJsonWebToken\Token();
    $token
        ->setAccount('account')
        ->setUsername('username')
        ->setPrivateKeyPath('/path/to/your/private_key.p8')
        ->setPrivateKeyPassphrase('password')
        ->setIssuedAt(time())
        ->setExpirationTime(time() + 3600);
    echo $token->generate();
```

Create private key
------------------

[](#create-private-key)

```
openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out snowflake_rsa_private_key.p8
```

Create public key
-----------------

[](#create-public-key)

```
openssl rsa -in snowflake_rsa_private_key.p8 -pubout -out snowflake_rsa_public_key.pub
```

Set your public key to your snowflake user
------------------------------------------

[](#set-your-public-key-to-your-snowflake-user)

```
alter user {{YOUR_USERNAME}} set rsa_public_key='from snowflake_rsa_public_key.pub MIIBIjANBgkqhkiG...';
```

Submitting a test request to execute SQL statement
--------------------------------------------------

[](#submitting-a-test-request-to-execute-sql-statement)

```
./tests/EndToEndTest.php
```

Links
-----

[](#links)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~256 days

Total

2

Last Release

1244d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/927011a79e813053d6f210c929e3f5b5f2dfae90cda66199a8e840e511115cb7?d=identicon)[szabacsik](/maintainers/szabacsik)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/szabacsik-snowflake-json-web-token/health.svg)

```
[![Health](https://phpackages.com/badges/szabacsik-snowflake-json-web-token/health.svg)](https://phpackages.com/packages/szabacsik-snowflake-json-web-token)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

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