supabase/functions-php
Supabase Edge Functions for PHP
Maintainers
Requires
- guzzlehttp/guzzle: 7.5
- vlucas/phpdotenv: 5.5
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
Unknown License 1f3ccef1ff65d8cf1f1b2a797658274df7402495
- jordan <jordan.woop@ascensionengineer.com>
- norm <norm.woop@zerocopylabs.com>
- Adolfo <adolfo.woop@zerocopylabs.com>
- Luis <luis.woop@zerocopylabs.com>
This package is auto-updated.
Last update: 2026-06-26 12:11:11 UTC
README
PHP Client library to interact with Supabase Edge Functions.
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
- Support for all Request / Response types
Quick Start Guide
Installing the module
composer require supabase/functions-php
Calling an Edge Function
use Supabase\Functions\FunctionsClient; $client = new FunctionsClient($reference_id, $api_key); $result = $client->invoke('hello-world');
Examples
@TODO - point to the examples directory
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
