PHPackages                             mezon/social-network - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mezon/social-network

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mezon/social-network
====================

https://github.com/alexdodonov/mezon-social-network

1.1.1(4y ago)61.5k1MITPHPPHP &gt;=7.2.0CI failing

Since Feb 19Pushed 4y ago2 watchersCompare

[ Source](https://github.com/alexdodonov/mezon-social-network)[ Packagist](https://packagist.org/packages/mezon/social-network)[ Docs](https://github.com/alexdodonov/mezon-social-network)[ RSS](/packages/mezon-social-network/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (10)Used By (1)

Set of classes for working with social media
============================================

[](#set-of-classes-for-working-with-social-media)

[![Build Status](https://camo.githubusercontent.com/c63b3cd470c6423fe418ad1b392823a2aa5b852b45f342950fc96b96ef4fb799/68747470733a2f2f7472617669732d63692e6f72672f616c6578646f646f6e6f762f6d657a6f6e2d736f6369616c2d6e6574776f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/alexdodonov/mezon-social-network) [![codecov](https://camo.githubusercontent.com/2430f7fcb57e5e32d4fe81bf0de104364623837292461791c712ccf7b837f6ae/68747470733a2f2f636f6465636f762e696f2f67682f616c6578646f646f6e6f762f6d657a6f6e2d736f6369616c2d6e6574776f726b2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/alexdodonov/mezon-social-network) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/f4a9439202a905e6462f571e6f1035e39ee1a61e4697b602f7ed17c9f6f3a026/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c6578646f646f6e6f762f6d657a6f6e2d736f6369616c2d6e6574776f726b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexdodonov/mezon-social-network/?branch=master)

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

[](#installation)

Just type

```
composer require mezon/social-network

```

All supported social networks
-----------------------------

[](#all-supported-social-networks)

- Facebook
- VKontakte
- Odnoklassniki

If you need support of the social media wich is not in the list please use [issue creation form](https://github.com/alexdodonov/mezon-social-network/issues)

Facebook auth code
------------------

[](#facebook-auth-code)

First of all we need to create [Facebook application](https://developers.facebook.com/apps/)

After that you will be able to use this application for sign in page on your site.

And somewhere in your code you need to create object:

```
$facebook = new \Mezon\SocialNetwork\Auth\Facebook([
	'client_id' => 'client id from the Facebook application',
	'client_secret' => 'client secret from the Facebook application',
	'redirect_uri' => 'URI of your web application on wih user will be redirected after authorization on Facebook'
]);
```

Then output a button on your page wich will let users to go on the Facebook and use ther facebook account for signing in on your site:

```
print('');
```

After clicking on that link you users will be redirected on the Facebook. There they will confirm that they want to use your application for signing in and grant access to their account's data. And then they will be redurected on the 'redirect\_uri' wich you have specified when you created your application on Facebook and the same URL must be used wile $facebook object setup.

```
// your redirect_uri must process code

if($facebook->auth($_GET['code'])) {
	// authorization was successfull
}
else {
	// an error have occured
}
```

If the method $facebook-&gt;auth() have returned `true` then everithing is OK and you can fetch user's data:

```
var_dump($facebook->userInfo);
// here:
// [
//	'id' => 'user id',
//	'first_name' => 'user first name',
//	'last_name' => 'user last name',
//	'email' => 'user email, but looks like Facebook has forbidden to fetch this info, so dont rely on this field',
//	'picture' => 'user avatar'
// ]
```

Learn more
==========

[](#learn-more)

More information can be found here:

[Twitter](https://twitter.com/mezonphp)

[dev.to](https://dev.to/alexdodonov)

[Slack](https://join.slack.com/t/mezon-framework/signup?x=x-p1148081653955-1171709616688-1154057706548)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~87 days

Recently: every ~125 days

Total

9

Last Release

1573d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14943896?v=4)[alexdodonov](/maintainers/alexdodonov)[@alexdodonov](https://github.com/alexdodonov)

---

Top Contributors

[![alexdodonov](https://avatars.githubusercontent.com/u/14943896?v=4)](https://github.com/alexdodonov "alexdodonov (28 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mezon-social-network/health.svg)

```
[![Health](https://phpackages.com/badges/mezon-social-network/health.svg)](https://phpackages.com/packages/mezon-social-network)
```

###  Alternatives

[benpickles/peity

Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini `&lt;svg&gt;` pie, donut, line or bar chart.

4.2k2.8k](/packages/benpickles-peity)[2amigos/yii2-grid-view-library

GridView Widget Extensions for Yii2.

56147.2k12](/packages/2amigos-yii2-grid-view-library)[zhuravljov/yii2-datetime-widgets

Datetime widgets for Yii2.

21118.6k3](/packages/zhuravljov-yii2-datetime-widgets)[smajti1/laravel-wizard

Wizard component for laravel.

409.2k](/packages/smajti1-laravel-wizard)[tivie/command

An utility library that harmonizes OS differences and executes external programs in a safer way

1455.3k1](/packages/tivie-command)[wedevelopnl/silverstripe-elemental-grid

Elemental grid module

1014.1k2](/packages/wedevelopnl-silverstripe-elemental-grid)

PHPackages © 2026

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