PHPackages                             carry0987/falcon - 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. [Framework](/categories/framework)
4. /
5. carry0987/falcon

ActiveLibrary[Framework](/categories/framework)

carry0987/falcon
================

Falcon - A versatile PHP framework designed for seamless integration of third-party social logins. Supports major services including Google, Facebook, Twitter, etc, delivering simple and secure authentication via a unified interface and design patterns.

1.0.4(2y ago)079MITPHPPHP &gt;=7.4

Since Dec 30Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/carry0987/Falcon)[ Packagist](https://packagist.org/packages/carry0987/falcon)[ RSS](/packages/carry0987-falcon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Falcon
======

[](#falcon)

[![Packgist](https://camo.githubusercontent.com/a9a45a93686ce6b07561df58d627f95863eeb1fdd0920b5f7f33e8a09b26bf48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361727279303938372f66616c636f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/carry0987/falcon)
Falcon is a versatile PHP framework designed for seamless integration of third-party social platform login mechanisms.
It offers simple and secure user authentication through a unified interface and design patterns, making it easy to implement and maintain.
Currently, it supports the following major services:

- GitHub
- Google
- Facebook
- Instagram
- Twitter
- Reddit
- Discord
- Line
- Telegram

Whether you're developing a new application or enhancing an existing system, Falcon can help you quickly implement social login features while ensuring user data security and privacy.

Features
--------

[](#features)

- **Unified Interface**: Operate all supported social services using standardized methods.
- **Easy Integration**: Integrate quickly into your project with intuitive configuration and clear documentation.
- **Security**: Implements the best current security practices to safeguard the login process and data.
- **Flexible Design**: Easily add or remove specific social services without affecting the existing system architecture.
- **Open Source Support**: Benefit from the continuous improvements and support of the open-source community.

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

[](#installation)

Install Falcon into your project with [Composer](https://getcomposer.org/):

```
composer require carry0987/falcon

```

Usage Example
-------------

[](#usage-example)

First, set up the credentials and other configuration information for each third-party service in your project:

```
$config = [
    'providers' => [
        'github' => [
            'client_id' => 'your_github_client_id',
            'client_secret' => 'your_github_client_secret',
            'redirect_uri' => 'https://your-website.com/path/to/callback.php?provider=github'
        ],
        'line' => [
            'client_id' => 'your_line_client_id', // Channel ID
            'client_secret' => 'your_line_client_secret', // Channel secret
            'redirect_uri' => 'https://your-website.com/path/to/callback.php?provider=line'
        ],
        'telegram' => [
            'client_id' => 'your_telegram_client_id', // Bot username
            'client_secret' => 'your_telegram_client_secret', // Bot token
            'redirect_uri' => 'https://your-website.com/path/to/callback.php?provider=telegram'
        ],
        // Configuration for other third-party login providers...
    ],
];
```

Next, create an instance of `Falcon` and initiate the login process with the chosen third-party provider:

```
$falcon = new \carry0987\Falcon\Falcon($config);
$providerName = $_GET['provider'] ?? 'default';
$provider = $falcon->createProvider($providerName);

// Start the OAuth login process
if (!isset($_GET['code'])) {
    $loginUrl = $provider->authorize();
    // Redirect user to the login page
    header('Location: ' . $loginUrl);
    exit;
}

// Handle the callback and retrieve user information
if ($providerName === 'telegram') {
    // Special handling for Telegram login flow...
} else {
    $accessToken = $provider->getTokenWithAuthCode($_GET['code']);
    $user = $provider->getUser();

    // Output user information
    echo "" . print_r($user, true) . "";
}
```

To end the **login** session, you can revoke the `access token`:

```
if (isset($_GET['logout'])) {
    $provider->revokeAccessToken($_GET['access_token'] ?? null);
    // Redirect back to the login page or homepage
    header('Location: ?provider=' . $providerName);
    exit;
}
```

You can add more standard OAuth processing logic to your code, such as handling error states, redirecting to other pages, etc.

Support
-------

[](#support)

If you have any issues, please open an issue on our GitHub repository.

Enjoy using Falcon in your project!

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance57

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~4 days

Total

5

Last Release

848d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f43bad259478092c4ff269518aa9a0c8e91a537a67272877041b4bc1f25cfe8?d=identicon)[carry0987](/maintainers/carry0987)

---

Top Contributors

[![carry0987](https://avatars.githubusercontent.com/u/12984973?v=4)](https://github.com/carry0987 "carry0987 (13 commits)")

### Embed Badge

![Health badge](/badges/carry0987-falcon/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[laravel/socialite

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

5.7k96.9M674](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[laravel/forge-sdk

The official Laravel Forge PHP SDK.

5691.1M18](/packages/laravel-forge-sdk)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

714214.9k8](/packages/nutgram-nutgram)

PHPackages © 2026

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