Giter VIP home page Giter VIP logo

storage-php's Introduction

Supabase storage-php

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.

TODO

  • Support for PHP 7.4
  • Adjust response interface to be closer to postgrest-php so manual parsing of response payloads is not needed
  • Running unit and integration tests together results in test failures

Quick Start Guide

Installing the module

composer require supabase/storage-php

Connecting to the storage backend

use Supabase\Storage;

include __DIR__.'/vendor/autoload.php';

use Supabase\Storage;

$client = new StorageClient('API_KEY', 'REFERENCE_ID');

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

storage-php's People

Contributors

tehnorm avatar wichinrighetti avatar adolfo1971 avatar github-actions[bot] avatar stylecibot avatar levet avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.