PHP Classes

MyLogin: Authenticate users using Facebook, Twitter, Google

Recommend this page to a friend!
  Info   View files Documentation   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 837 All time: 4,147 This week: 206Up
Version License PHP version Categories
mylogin 1.0.6Custom (specified...5PHP 5, User Management, Social Networ...


This package can authenticate users using Facebook, Twitter or Google.

It can perform OAuth authentication of a user redirecting to either Facebook, Twitter or Google authorization pages.

If the user is successfully authenticated with any of these OAuth providers, session variables will be set with the user profile details.

Picture of Yorch Ponce
Name: Yorch Ponce <contact>
Classes: 6 packages by
Country: Mexico Mexico
Age: 43
All time rank: 206022 in Mexico Mexico
Week rank: 307 Up4 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 1x


Retrieve Twitter user profile info
Integrate Twitter in my application

What is the best PHP facebook login class?
Facebook login to my website

PHP Class for Social login
Login using credentials from a social site such as Facebook

What is the best PHP facebook login class?
Would like some example of usage Facebook login




Abstract Class for Login in Social Networks


Developer Documentation

Execute phpdoc -d MyLogin/


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


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

if ($social->login()){


The Library creates session variables:


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


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

  Files folder image Files  
File Role Description
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License
Plain text file MyLogin.class.php Class Class source
Plain text file MySocial.class.php Class Class source
Accessible without login Plain text file Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,147
This week:206Up