PHPackages                             yorch/mylogin - 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. yorch/mylogin

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

yorch/mylogin
=============

Abstract Class for Login in Social Networks

11432PHP

Since Jan 25Pushed 5y ago2 watchersCompare

[ Source](https://github.com/yorch81/MyLogin)[ Packagist](https://packagist.org/packages/yorch/mylogin)[ RSS](/packages/yorch-mylogin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MyLogin
=======

[](#mylogin)

Description
-----------

[](#description)

Abstract Class for Login in Social Networks

Requirements
------------

[](#requirements)

- [PHP 5.4.1 or higher](http://www.php.net/)

Developer Documentation
-----------------------

[](#developer-documentation)

Execute phpdoc -d MyLogin/

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

[](#installation)

Create file composer.json

```
{
    "require": {
    	"php": ">=5.4.0",
        "yorch/mylogin" : "dev-master",
        "monolog/monolog": "1.13.1",
        "facebook/php-sdk-v4" : "4.0.23",
        "ruudk/twitter-oauth" : "dev-master",
        "google/apiclient": "1.*"
    }
}

```

Execute composer.phar install

Example
-------

[](#example)

```

$social = MyLogin::getInstance(MyLogin::FACEBOOK, 'APP_ID', 'APP_SECRET', 'CALLBACK_URL');

if ($social->login()){
	redirect_to(MYPAGE);
}
else
	redirect_to($social->getAuthUrl());

```

Notes
-----

[](#notes)

The Library creates session variables:

```

$_SESSION['SOCIAL_TYPE'] = ('FB', 'TW', 'GP')
$_SESSION['SOCIAL_ID'] = 'SOCIAL_ID'
$_SESSION['SOCIAL_NAME'] = 'SOCIAL_NAME'
$_SESSION['SOCIAL_LNAME'] = 'SOCIAL_LAST_NAME'
$_SESSION['SOCIAL_LINK'] = 'http://SOCIAL_URL/'
$_SESSION['SOCIAL_IMG'] = 'http://SOCIAL_IMG/'
$_SESSION['SOCIAL_MAIL'] = 'SOCIAL@MAIL'
$_SESSION['SOCIAL_SESSION'] = 'SOCIAL_TOKEN';

```

This tool uses PHP Sessions and Facebook SDk, Abraham Twitter OAuth Library and Google Api Client.

References
----------

[](#references)

P.D. Let's go play !!!

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity31

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.

### Community

Maintainers

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

---

Top Contributors

[![yorch81](https://avatars.githubusercontent.com/u/4605324?v=4)](https://github.com/yorch81 "yorch81 (11 commits)")

### Embed Badge

![Health badge](/badges/yorch-mylogin/health.svg)

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

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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