PHPackages                             samer-alsayegh/social\_plugin - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. samer-alsayegh/social\_plugin

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

samer-alsayegh/social\_plugin
=============================

Add Social Login and Sign Up integration to Laravel Lumen Framework

08PHP

Since Jul 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/samer-alsayegh/social_plugin)[ Packagist](https://packagist.org/packages/samer-alsayegh/social_plugin)[ RSS](/packages/samer-alsayegh-social-plugin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Social Plugin
=============

[](#social-plugin)

This package is a social Login and Sign Up integration based on Laravel/Lumen Framework and laravel/socialite.

So, first to use this library you should install [laravel/lumen.](https://lumen.laravel.com/docs/5.6), and then intall the [laravel/socialite.](https://laravel.com/docs/5.6/socialite)

After you have finished intalling lumen and socialite, then install this library so you are able to authenticate with OAuth providers using Laravel Socialite. Socialite currently supports authentication with Facebook, Twitter, LinkedIn, Google, GitHub and Bitbucket..

### In this package you can see the edits I did so that the socialite would work:

[](#in-this-package-you-can-see-the-edits-i-did-so-that-the-socialite-would-work)

---

- File bootstrap/app.php

    - Uncomment $app-&gt;withFacades();

    - Add the below code in "Create the Application" Section:
        if (!class\_exists('Socialite')) { class\_alias('Laravel\\Socialite\\Facades\\Socialite', 'Socialite'); }

    - Add the below code in the "Register Service Providers" Section:
         $app-&gt;register(Laravel\\Socialite\\SocialiteServiceProvider::class);

    - Add the below code before the "return $app;"
         $app-&gt;configure('services');

- config/services.php

    - Add folder config at the root of the app

    - Add in folder config file services.php
         This file contains the id, secret, and callback url of each platform used(Facebook, Github, Twitter, etc..)

- app/Http/Controllers/Auth/LoginController.php

    - Add folder Auth inside app/Http/Controllers

    - Add in folder file LoginController.php
         This file is responsible for the functions that handles the call to the platform and the callback returned to get the userinfo
- Add file helpers.php inside the app folder

    - Lumen is so stripped down, that the Route resolves to a simple array, rather than a Route object. This is a problem, since the Request::route($key) method assumes the Route will have a parameter method. So this file contains function route\_parameter to get the parameters of the route.
        N.B To use the functions in the helpers.php file, you have to add in the composer.json under the autoload "files": \[ "app/helpers.php" \] and run in the command line composer dump-autoload

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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.

### Community

Maintainers

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

---

Top Contributors

[![sam-sayegh](https://avatars.githubusercontent.com/u/13986975?v=4)](https://github.com/sam-sayegh "sam-sayegh (44 commits)")

### Embed Badge

![Health badge](/badges/samer-alsayegh-social-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/samer-alsayegh-social-plugin/health.svg)](https://phpackages.com/packages/samer-alsayegh-social-plugin)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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