PHPackages                             cesar-jr/ci-social - 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. cesar-jr/ci-social

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

cesar-jr/ci-social
==================

A package for easy integration of OAuth2 logins

v0.1.0(9mo ago)01PHPPHP ^7.4 || ^8.0

Since Aug 13Pushed 9mo agoCompare

[ Source](https://github.com/cesar-jr/ci-social)[ Packagist](https://packagist.org/packages/cesar-jr/ci-social)[ RSS](/packages/cesar-jr-ci-social/feed)WikiDiscussions master Synced 1mo ago

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

CI Social
=========

[](#ci-social)

[![Packagist Version](https://camo.githubusercontent.com/e179c2ad9bbe6734b02d32752ac2c574542d2e090853eca2aa811447a54997b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63657361722d6a722f63692d736f6369616c)](https://packagist.org/packages/cesar-jr/ci-social)[![License](https://camo.githubusercontent.com/28797bbe2025759869297ade88e08c175bd40e40f2f8a112802c63769715632b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63657361722d6a722f63692d736f6369616c)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/2c1ff2582df071f110a195162badab2c3af8357f52a13788796c3315c3e8b62c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f63657361722d6a722f63692d736f6369616c)](https://packagist.org/packages/cesar-jr/ci-social)

**CI Social** is a [CodeIgniter 4](https://codeigniter.com/) package shamelessly copied from inspired by [Laravel Socialite](https://laravel.com/docs/master/socialite), enabling seamless OAuth authentication with multiple providers.

Currently supports: **Bitbucket, Facebook, GitHub, GitLab, Google, LinkedIn, Slack, Twitch, and Twitter**.

---

📦 Installation
--------------

[](#-installation)

Install via [Composer](https://getcomposer.org/):

```
composer require cesar-jr/ci-social
```

---

⚙️ Configuration
----------------

[](#️-configuration)

After installation, publish the configuration file:

```
php spark social:setup
```

This will create:

```
app/Config/Social.php

```

Add your provider credentials:

```
public array $providers = [
    'github' => [
        'client_id'     => 'your-client-id',
        'client_secret' => 'your-client-secret',
        'redirect'      => '/callback/github',
    ],
    'google' => [
        'client_id'     => 'your-client-id',
        'client_secret' => 'your-client-secret',
        'redirect'      => '/callback/google',
    ],
    // ... other providers
];
```

---

🚀 Basic Usage
-------------

[](#-basic-usage)

You can use either the **helper** or **service** to start the OAuth flow.

### 1. Redirecting to the provider

[](#1-redirecting-to-the-provider)

**Using helper:**

```
return social('github')->redirect();
```

**Using service:**

```
return service('social')->driver('github')->redirect();
```

### 2. Getting the user after callback

[](#2-getting-the-user-after-callback)

```
$user = social('github')->user();

// Available user data
$user->getId();
$user->getName();
$user->getEmail();
$user->getAvatar();
```

---

🌐 Supported Providers
---------------------

[](#-supported-providers)

- Bitbucket
- Facebook
- GitHub
- GitLab
- Google
- LinkedIn
- Slack
- Twitch
- Twitter

---

🤝 Contributing
--------------

[](#-contributing)

Pull Requests are welcome!
If you find a bug, please open an **issue** with details and reproduction steps.

---

📄 License
---------

[](#-license)

This project is licensed under the [MIT License](LICENSE).

---

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance58

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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

273d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b01aaeefe42069dc11bd69c8a3ab7ae9feb0651c17883455b9a8c2ee967bf792?d=identicon)[cesarmsjunior@gmail.com](/maintainers/cesarmsjunior@gmail.com)

---

Top Contributors

[![cesar-jr](https://avatars.githubusercontent.com/u/99297077?v=4)](https://github.com/cesar-jr "cesar-jr (9 commits)")

---

Tags

oauthcodeigniter4

### Embed Badge

![Health badge](/badges/cesar-jr-ci-social/health.svg)

```
[![Health](https://phpackages.com/badges/cesar-jr-ci-social/health.svg)](https://phpackages.com/packages/cesar-jr-ci-social)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[clerkinc/backend-php

2755.0k](/packages/clerkinc-backend-php)

PHPackages © 2026

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