Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

supabase

> 后端框架
Open source

A Laravel package for integrating with Supabase services

115.2K stars0 likes6 views
WebsiteGitHub

About

A Laravel package for integrating with Supabase services

Supabase Laravel Package

A comprehensive Laravel package for integrating with Supabase services including Auth, Database, Storage, and Realtime.

  • Chat with AI for "saeedvir/supabase" package
  • حمایت مالی از من

Installation

You can install the package via composer:

bash
composer require saeedvir/supabase

Configuration

Publish the configuration file:

bash
php artisan vendor:publish --provider="Saeedvir\Supabase\SupabaseServiceProvider" --tag="supabase-config"

Add your Supabase credentials to your .env file:

env
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-public-key
SUPABASE_SECRET=your-supabase-secret-key

Get URL & KEY

  • go to supabase Dashboard
  • select your project
  • go to "Project Settings"
  • go to "Data API"
  • copy "Project URL" as "SUPABASE_URL"
  • go to "API KEY"
  • copy "service_role" secret key as "SUPABASE_KEY"
  • then php artisan config:clear

Usage

Using the Facade

php
use Saeedvir\Supabase\Facades\Supabase;

// Database operations
$users = Supabase::db()->select('users', '*', ['active' => true]);

// Auth operations
$result = Supabase::auth()->signIn('[email protected]', 'password');

// Storage operations
$result = Supabase::storage()->upload('avatars', 'user-avatar.png', '/path/to/local/file.png');

// Realtime operations
$url = Supabase::realtime()->channelUrl('public', 'users');

Using the Service Directly

php
use Saeedvir\Supabase\Services\SupabaseService;

$supabase = new SupabaseService();

// Database operations
$users = $supabase->db->select('users', '*', ['active' => true]);

// Auth operations
$result = $supabase->auth->signIn('[email protected]', 'password');

Features

Auth Service

  • User signup and signin
  • Password reset
  • User management
  • Session management

Database Service

  • Select, insert, update, delete operations
  • Filtering and ordering
  • RPC function calls

Storage Service

  • File upload and download
  • File management (move, copy, delete)
  • Signed URLs for private files
  • Public and authenticated URLs

Realtime Service

  • WebSocket channel URLs
  • Client connection helpers
  • JavaScript snippets for frontend integration

Configuration Options

You can customize the package behavior by modifying the config/supabase.php file:

  • Enable/disable specific services
  • Configure HTTP client settings (timeout, retries)
  • Set API keys and secrets

Requirements

  • PHP ^8.0
  • Laravel ^11.0|^12.0
  • GuzzleHTTP ^7.0

License

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

Issues· 3 open

View all issuesOpen on GitHub
  • #2

    SupabaseClient::request(): Return value must be of type array, null returned

    Updated Jan 30, 2026
  • #1

    Edge functions

    Updated Dec 10, 2025

> Tags

PHPlaravellaravel-packagephpsupabase

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedNov 21, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架