PHPackages                             supabase/gotrue-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. supabase/gotrue-php

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

supabase/gotrue-php
===================

Supabase GoTrue for PHP

v0.0.2(3y ago)19.0k↓34.4%5[1 PRs](https://github.com/supabase-community/gotrue-php/pulls)1PHPCI failing

Since Apr 27Pushed 2y ago8 watchersCompare

[ Source](https://github.com/supabase-community/gotrue-php)[ Packagist](https://packagist.org/packages/supabase/gotrue-php)[ Docs](https://github.com/supabase-community/gotrue-php)[ RSS](/packages/supabase-gotrue-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (3)Used By (1)

Supabase `gotrue-php`
=====================

[](#supabase-gotrue-php)

PHP Client library to interact with Supabase GoTrue.

> **Note:** This repository is in Alpha and is not ready for production usage. API's will change as it progresses to initial release.

### TODO

[](#todo)

- Support for PHP 7.4
- Running unit and integration tests together results in test failures

Quick Start Guide
-----------------

[](#quick-start-guide)

### Installing the module

[](#installing-the-module)

```
composer require supabase/gotrue-php
```

### Connecting to the gotrue backend

[](#connecting-to-the-gotrue-backend)

```
use Supabase\GoTrue\GoTrueClient;

$client = new GoTrueClient($reference_id, $api_key);
```

### Examples

[](#examples)

[Examples directory](examples)

### Testing

[](#testing)

Setup the testing Env

```
cp .env.example tests/.env

```

#### For the `REFERENCE_ID`

[](#for-the-reference_id)

Once signed on to the dashboard, navigate to, Project &gt;&gt; Project Settings &gt;&gt; General settings. Copy the Reference ID for use in the `.env`.

#### For the `API_KEY`

[](#for-the-api_key)

Once signed on to the dashboard, navigate to, Project &gt;&gt; Project Settings &gt;&gt; API &gt;&gt; Project API keys. Choose either the `anon` `public` or the `service_role` key.

Populate the `tests/.env` to include `REFERENCE_ID` and `API_KEY`.

#### Running all tests

[](#running-all-tests)

```
vendor/bin/phpunit

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50.7% 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 ~0 days

Total

2

Last Release

1117d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/0aef0f5f4985165b7f3a2e682a5c2d055a40fabab11c5da3bd643c095f0d3a20?d=identicon)[zlcnorm](/maintainers/zlcnorm)

---

Top Contributors

[![tehnorm](https://avatars.githubusercontent.com/u/228909?v=4)](https://github.com/tehnorm "tehnorm (34 commits)")[![adolfo1971](https://avatars.githubusercontent.com/u/14020458?v=4)](https://github.com/adolfo1971 "adolfo1971 (32 commits)")[![Levet](https://avatars.githubusercontent.com/u/8355930?v=4)](https://github.com/Levet "Levet (1 commits)")

---

Tags

supabasegotruegotrue-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/supabase-gotrue-php/health.svg)

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

###  Alternatives

[simplesamlphp/simplesamlphp-module-oidc

A SimpleSAMLphp module adding support for the OpenID Connect protocol

5016.9k1](/packages/simplesamlphp-simplesamlphp-module-oidc)[descope/descope-php

Descope SDK for PHP

3814.0k](/packages/descope-descope-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1516.7k](/packages/truckersmp-steam-socialite)[lion/bundle

Lion-framework configuration and initialization package

122.2k1](/packages/lion-bundle)

PHPackages © 2026

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