PHPackages                             saeedvir/supabase - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. saeedvir/supabase

ActiveLibrary[API Development](/categories/api)

saeedvir/supabase
=================

A Laravel package for integrating with Supabase services

v1.0(6mo ago)55657↑22.7%1[2 issues](https://github.com/saeedvir/supabase/issues)MITPHPPHP ^8.0

Since Nov 12Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/saeedvir/supabase)[ Packagist](https://packagist.org/packages/saeedvir/supabase)[ RSS](/packages/saeedvir-supabase/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Supabase Laravel Package
========================

[](#supabase-laravel-package)

[![alt text](https://raw.githubusercontent.com/saeedvir/supabase/refs/heads/main/docs/laravel-supabase-img.jpg?raw=true)](https://raw.githubusercontent.com/saeedvir/supabase/refs/heads/main/docs/laravel-supabase-img.jpg?raw=true)

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

- [Chat with AI for "saeedvir/supabase" package](https://context7.com/saeedvir/supabase?tab=chat)
- [حمایت مالی از من](https://reymit.ir/saeedvir)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require saeedvir/supabase
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

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

Add your Supabase credentials to your `.env` file:

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

Get URL &amp; KEY
-----------------

[](#get-url--key)

- go to [supabase Dashboard](https://supabase.com/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
-----

[](#usage)

### Using the Facade

[](#using-the-facade)

```
use Saeedvir\Supabase\Facades\Supabase;

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

// Auth operations
$result = Supabase::auth()->signIn('user@example.com', '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

[](#using-the-service-directly)

```
use Saeedvir\Supabase\Services\SupabaseService;

$supabase = new SupabaseService();

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

// Auth operations
$result = $supabase->auth->signIn('user@example.com', 'password');
```

Features
--------

[](#features)

### Auth Service

[](#auth-service)

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

### Database Service

[](#database-service)

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

### Storage Service

[](#storage-service)

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

### Realtime Service

[](#realtime-service)

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

Configuration Options
---------------------

[](#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
------------

[](#requirements)

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

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity30

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

185d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb63dbbcce86ecd5af69b654e2d4a30ec7b9a7e19985accc6510413e04627cb2?d=identicon)[saeedvir](/maintainers/saeedvir)

---

Top Contributors

[![saeedvir](https://avatars.githubusercontent.com/u/8615309?v=4)](https://github.com/saeedvir "saeedvir (6 commits)")

---

Tags

laravellaravel-packagephpsupabasesupabase-clientsupabase-db

### Embed Badge

![Health badge](/badges/saeedvir-supabase/health.svg)

```
[![Health](https://phpackages.com/badges/saeedvir-supabase/health.svg)](https://phpackages.com/packages/saeedvir-supabase)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
