mhd-elawi/social-auth

A package for social authentication (Google, Apple, Facebook)

v1.0.6 2025-04-22 13:59 UTC

This package is not auto-updated.

Last update: 2025-08-12 12:39:08 UTC


README

PHP Version Laravel

A PHP package that provides easy-to-use social authentication (Google, Apple, Facebook) for your application.

Features

  • Google OAuth2 Authentication
  • Apple Sign-In
  • Facebook Login Integration
  • Extensible provider-based architecture
  • Uses Guzzle for HTTP requests
  • JWT-based authentication with firebase/php-jwt

Requirements

  • PHP >= 8.1
  • Laravel >= 8.x (for Laravel integration)
  • firebase/php-jwt >= 6.0
  • guzzlehttp/guzzle >= 7.0
  • vlucas/phpdotenv >= 5.0 (for loading environment variables)

Installation

  • Install the package via Composer:
composer require mhd-elawi/social-auth
  • Publish the package configration:
php artisan vendor:publish --provider="MHD_elawi\SocialAuth\SocialAuthServiceProvider" --tag="social-auth-config"