承接 juanbenitez/supabase-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

juanbenitez/supabase-api

Composer 安装命令:

composer require juanbenitez/supabase-api

包简介

Minimal PHP implementation of the Supabase API.

README 文档

README

Latest Version on Packagist Tests Total Downloads

This is a minimal PHP implementation of the Supabase API wich is supported by PostgREST. It contains only the methods I needed. However, I'm open to PRs that add extra methods to the client.

Supabase-api is built with help of the awesome Saloon package.

Be aware that is a work in progress, it's in pre-alpha state, use it at your own risk.

Here are a few examples on how you can use the package:

Installation

You can install the package via composer:

composer require juanbenitez/supabase-api

Usage

Define a request class for a table in your DB.

use Juanbenitez\SupabaseApi\Request\ReadRowsRequest;

class UsersReadRowsRequest extends ReadRowsRequest
{
    protected ?string $table = 'users';
}
$connector    = new SupabaseConnector('https://testbaseurl.supabase.co/rest/v1/', 'TEST_SUPABASE_SERVICE_KEY');
$usersRequest = $connector->request(new UsersReadRowsRequest());

$usersRequest->select(['last_name', 'first_name', 'age'])
            ->where('age', '18')
            ->orderBy('created_at', 'desc')
            ->limit(5);

$response = $usersRequest->send();
$response->throw();

echo "status:". $response->status() . PHP_EOL;
print_r ($response->json());

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固