HybridAuth enable developers to easily build social applications to engage websites vistors and customers on a social level by implementing social signin, social sharing, users profiles, friends list, activities stream, status updates and more.

HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google.

HybridAuth Overview

HybridAuth is an easy to install and use social sign on php library. Connect users to a wide variety of well known social networks, grab their profiles, contact lists, update their status and even more.

Main Features »

Get started

A comprehensive online user guide that gives the definitive description of HybridAuth features with samples and tutorials.

HybridAuth User Guide »

Download

Download the latest version of HybridAuth at Github.

GitHub Download now » GitHub Fork on Github »

Hello world with HybridAuth

Connect to Twitter, update your status and grab your friends list in 20 lines of code:
  1. <?php
  2. $config = dirname(__FILE__) . '/library/config.php';
  3. require_once( "library/Hybrid/Auth.php" );
  4.  
  5. try{
  6. $hybridauth = new Hybrid_Auth( $config );
  7.  
  8. $twitter = $hybridauth->authenticate( "Twitter" );
  9.  
  10. $user_profile = $twitter->getUserProfile();
  11.  
  12. echo "Hi there! " . $user_profile->displayName;
  13.  
  14. $twitter->setUserStatus( "Hello world!" );
  15.  
  16. $user_contacts = $twitter->getUserContacts();
  17. }
  18. catch( Exception $e ){
  19. echo "Ooophs, we got an error: " . $e->getMessage();
  20. }

HybridAuth Extensions

Third party extensions available for serval CMS and PHP frameworks.

Download Extensions »

With more than 20 third-party plugins and addons, HybridAuth can be easily integrated with your existing platforms.

  • Zend
  • CodeIgniter
  • Cake PHP
  • Yii
  • Wordpress
  • Elgg
  • Drupal
  • Joomla
  • Expression Engine
  • ModX
  • Cotonti
  • Schlix
  • Subrion
  • CMS Made Simple
  • TYPO3
  • Shopware

HybridAuth Contributors

This is a list of the awesome people who have contributed to Hybridauth Library on Github.

Many other people have also contributed by submitting patches, constructive discussions and support.

Thanks to each and everyone of you!