定制 supabase/functions-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

supabase/functions-php

最新稳定版本:v0.0.3

Composer 安装命令:

composer require supabase/functions-php

包简介

Supabase Edge Functions for PHP

README 文档

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

统计信息

  • 总下载量: 10.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-04-26