PHPackages                             tutik/socialist - 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. tutik/socialist

ActiveLibrary

tutik/socialist
===============

 Then (^\_^) ...

0231PHP

Since Dec 19Pushed 12y ago2 watchersCompare

[ Source](https://github.com/sanchezzzhak/Socialist)[ Packagist](https://packagist.org/packages/tutik/socialist)[ RSS](/packages/tutik-socialist/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Socialist
=========

[](#socialist)

Laravel Socialist Package

Installation
============

[](#installation)

You should install this package through Composer.

Edit your project's `composer.json` file to require `tutik/socialist`.

```
"require": {
	"laravel/framework": "4.x",
	"tutik/socialist": "dev-master"
},
"minimum-stability" : "dev"

```

Next, update Composer from the Terminal: `composer update`

Once this operation completes, the final step is to add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

`'Tutik\Socialist\SocialistServiceProvider',`

Usage
=====

[](#usage)

Create config file in base folder app

/app/config/api/socialist.php

```
return [

    'vk' => [
        'app_id'       => '',
        'app_key'      => '',
        'redirect_url' => 'http://site/socialist',
    ],
    'mailru' => [
        'app_id'            => ,
        'app_key_private'   => '',
        'app_key'           => '',
        'redirect_url'      => 'http://site/socialist',
    ],

    'fb' => [
        'app_id'       => '',
        'app_key'      => '',
        'redirect_url' => 'http://site/socialist',
    ],
];
```

Create a controller and use

```
