Download the PHP package draidel/laravel-supabase-auth without Composer
On this page you can find all versions of the php package draidel/laravel-supabase-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download draidel/laravel-supabase-auth
More information about draidel/laravel-supabase-auth
Files in draidel/laravel-supabase-auth
Package laravel-supabase-auth
Short Description Enterprise-grade Laravel package providing complete Supabase authentication integration with advanced security, monitoring, and scalability features
License MIT
Homepage https://github.com/supabase/laravel-auth
Informations about the package laravel-supabase-auth
Laravel Supabase Auth
An enterprise-grade Laravel package that completely replaces Laravel's native authentication system with Supabase authentication. Built with production-ready features including circuit breakers, rate limiting, comprehensive caching, monitoring, and advanced security.
โจ Features
- ๐ Complete Auth Replacement: Drop-in replacement for Laravel's native authentication
- ๐ข Enterprise-Ready: Circuit breakers, rate limiting, caching, and monitoring
- ๐ High Performance: Intelligent caching with Redis support and connection pooling
- ๐ก๏ธ Security First: Advanced password policies, secure cookies, and CSRF protection
- ๐ Observability: Comprehensive logging, metrics collection, and health checks
- ๐ Resilient: Automatic retry logic, token refresh, and graceful error handling
- ๐ฏ OAuth Support: Social login with Google, GitHub, Discord, and more
- ๐ง Email Features: Verification, password reset, and magic links
- ๐งช Fully Tested: Comprehensive test suite with 100% coverage
- ๐ Well Documented: Complete API documentation with examples
๐ Quick Start
Installation
Publish Configuration
Environment Setup
Add to your .env file:
Run Migrations
Validate Configuration
๐ Configuration
Basic Auth Configuration
Update your config/auth.php:
Enterprise Configuration
The package provides extensive configuration options in config/supabase-auth.php:
๐ก Usage Examples
User Registration
User Authentication
Working with Users
OAuth Authentication
Password Reset
Email Verification
๐ Route Protection
Basic Middleware
Advanced Middleware
Guest-Only Routes
๐ ๏ธ Management Commands
Validate Configuration
Test Connection
Cache Management
๐ Monitoring & Observability
Health Checks
Circuit Breaker Status
Rate Limiting Info
๐ง Customization
Custom User Model
Create your own user model:
Update configuration:
Event Listeners
Listen to authentication events:
Custom Services
Extend or replace services by binding in your service provider:
๐งช Testing
Run Tests
Test Coverage
Code Quality
Testing in Your App
Mock the Supabase client in your tests:
๐ API Reference
SupabaseAuth Service
Available API Endpoints
| Method | Endpoint | Description | Auth Required |
|---|---|---|---|
| POST | /auth/supabase/register |
User registration | No |
| POST | /auth/supabase/login |
User login | No |
| POST | /auth/supabase/logout |
User logout | No |
| POST | /auth/supabase/refresh |
Refresh access token | No |
| GET | /auth/supabase/user |
Get authenticated user | Yes |
| POST | /auth/supabase/password/reset |
Request password reset | No |
| POST | /auth/supabase/password/update |
Update password | Yes |
| POST | /auth/supabase/otp/verify |
Verify OTP | No |
| POST | /auth/supabase/otp/resend |
Resend OTP | No |
| GET | /auth/supabase/callback |
OAuth callback | No |
๐จ Error Handling
The package provides specific exceptions:
๐ง Troubleshooting
Common Issues
-
Configuration Validation Failed
-
Connection Issues
-
Cache Issues
- Circuit Breaker Open
Debug Mode
Enable debug logging:
๐ค Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and add tests
- Run the test suite:
composer test - Run code quality checks:
composer analyse && composer format - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Submit a pull request
๐ License
This package is open-sourced software licensed under the MIT license.
๐ Acknowledgments
- Built for the Supabase ecosystem
- Inspired by Laravel's elegant authentication system
- Thanks to all contributors and the open-source community
๐ Support
- ๐ Issue Tracker
- ๐ฌ Discussions
- ๐ Give us a star if this package helped you!
Made with โค๏ธ by Draidel.com
All versions of laravel-supabase-auth with dependencies
laravel/framework Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.5
firebase/php-jwt Version ^6.8
psr/log Version ^3.0
illuminate/cache Version ^10.0|^11.0
illuminate/validation Version ^10.0|^11.0
ramsey/uuid Version ^4.7