supabase / gotrue-php
Supabase GoTrue for PHP
Installs: 3 220
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 9
Forks: 5
Open Issues: 1
Requires
- cboden/ratchet: 0.4.4
- guzzlehttp/guzzle: 7.5
- lcobucci/jwt: 4.2
- spatie/url: 2.2
- vlucas/phpdotenv: 5.5
Requires (Dev)
- allure-framework/allure-phpunit: 1.5
- fzaninotto/faker: 1.5
- mockery/mockery: 1.5
- ottaviano/faker-gravatar: 0.2.0
- phpunit/phpunit: 9.6
README
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
- Support for PHP 7.4
- Running unit and integration tests together results in test failures
Quick Start Guide
Installing the module
composer require supabase/gotrue-php
Connecting to the gotrue backend
use Supabase\GoTrue\GoTrueClient; $client = new GoTrueClient($reference_id, $api_key);
Examples
Testing
Setup the testing Env
cp .env.example tests/.env
For the REFERENCE_ID
Once signed on to the dashboard, navigate to, Project >> Project Settings >> General settings. Copy the Reference ID for use in the .env
.
For the API_KEY
Once signed on to the dashboard, navigate to, Project >> Project Settings >> API >> 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
vendor/bin/phpunit