Download the PHP package xsanisty/loginradius without Composer

On this page you can find all versions of the php package xsanisty/loginradius. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package loginradius

LoginRadius PHP SDK

This is the composer friendly fork of https://github.com/LoginRadius/PHP-SDK

LoginRadius PHP SDK is a development kit that lets you integrate Social Login such as Facebook, Google, Twitter and over 20 more on a PHP website. The SDK also fetches user profile data and can be customized from your LoginRadius user account. Ex: social icon sets, login interface, provider settings, etc.

Installation

Just add "xsanisty/loginradius" : "dev-master" to "require" field in composer.json

Example Code

"require" : {
    "xsanisty/loginradius" : "dev-master"
}

Steps to call the library:

 1. On the code behind of callback page, create an object of LoginRadius class and pass secret key and the token.
 2. If success, call getData method to get user's profile data.
   [For Premium paid plans: You can call getData method to get Extended user profile data.]
   visit the link for more information to get list of data: https://www.loginradius.com/product/user-profile-data

Sample code for authentication and get basic profile data

PHP

session_start();
require_once __DIR__.'/../vendor/autoload.php';
use LoginRadius\LoginRadius;

$secret = 'your-login-radius-secret';

//save token in session
if(isset($_POST['token'])){
    $_SESSION['token'] = $_POST['token'];
}else{
    $_SESSION['token'] = isset($_SESSION['token']) ? $_SESSION['token'] : '';
}

$token = $_SESSION['token'];

$loginRadius = new LoginRadius($secret, $token);
$userData = $loginRadius->getData();

Advance features (for Paid customers only)

LoginRadius generate a unique session token, when user logs in with any of social network. The lifetime of LoginRadius token is 15 mins, get/Save this Token to call this API.

LoginRadius Contacts API

You can use this API to fetch contacts from users social networks/email clients - Facebook, Twitter, LinkedIn, Google, Yahoo.

PHP

$loginRadius->contact->getContacts();

LoginRadius Status API

PHP

//post status
$response = $loginRadius->status->postStatus(array(
    'to' => '',
    'title' => '',
    'url' => '',
    'imageurl' => '',
    'status' => '',
    'caption' => '',
    'description' => ''
));

if($response === true){
    echo 'Message posted successfully.'; }
elseif(isset($response->errormessage)){
    echo $response->errormessage;
}else{
    echo 'Error in message post.';
}

//get status
$status = $loginRadius->status->getStatus();

LoginRadius Posts API

You can use this API to get posts from users social networks - Facebook, Twitter, LinkedIn

PHP

//get posts
$posts = $loginRadius->post->getPosts();

Get Twitter Mentions

You can use this API to get mentions from users social network - Twitter.

PHP

$mentions = $loginRadius->status->getMentions();

Facebook Groups

You can use this API to get groups from users social network - Facebook.

PHP

$groups = $loginRadius->group->getGroups();

Get LinkedIn follow companies

You can use this API to get followed companies list from users social network - LinkedIn.

PHP

$companies = $loginRadius->company->getCompany();

LoginRadius direct message API

You can use this API to send direct message.

PHP

$response = $loginRadius->message->sendMessage($to,$subject,$message);
if($response === true){
        echo 'Message sent successfully.';
}elseif(isset($response->errormessage)){
        echo $response->errormessage;
}else{
        echo 'Error in sending message.';
}

All versions of loginradius with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xsanisty/loginradius contains the following files

Loading the files please wait ....