PHP Client library to interact with Supabase Storage.
Note: This repository is in Alpha and is not ready for production usage. API's will change as it progresses to initial release.
- Support for PHP 7.4
- Adjust response interface to be closer to
postgrest-phpso manual parsing of response payloads is not needed - Running unit and integration tests together results in test failures
composer require supabase/storage-phpuseSupabase\Storage;
include__DIR__.'/vendor/autoload.php';
useSupabase\Storage;
$client = newStorageClient('API_KEY', 'REFERENCE_ID');@TODO - point to the examples directory
Setup the testing Env
cp .env.example tests/.env
Once signed on to the dashboard, navigate to, Project >> Project Settings >> General settings. Copy the Reference ID for use in the .env.
Once signed on to the dashboard, navigate to, Project >> Project Settings >> API >> Project API keys. Choose either the anonpublic or the service_role key.
Populate the tests/.env to include REFERENCE_ID and API_KEY.
vendor/bin/phpunit