PHPackages                             alexrvs/yii2-facebook - 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. [API Development](/categories/api)
4. /
5. alexrvs/yii2-facebook

ActiveYii2-extension[API Development](/categories/api)

alexrvs/yii2-facebook
=====================

Yii Facebook API

295PHP

Since Mar 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/alexrvs/yii2-facebook)[ Packagist](https://packagist.org/packages/alexrvs/yii2-facebook)[ RSS](/packages/alexrvs-yii2-facebook/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii 2 Facebook API
==================

[](#yii-2-facebook-api)

A simple library for Yii 2 that allows interfacing with the [Facebook PHP SDK](https://github.com/facebook/facebook-php-sdk-v4).

How to install

Either run

```
$ php composer.phar require alexrvs/yii2-facebook

```

or add

```
"alexrvs/yii2-facebook"

```

to the `require` section of your `composer.json` file.

How to use

Add into config new component

```
 "components" => [
        'facebook' => [
            'class' => 'alexrvs\facebook\Facebook',
            'appId' => 'Your app ID',
            'secret' => 'Your secret key app',
        ]
    ]

```

License
-------

[](#license)

The MIT License (MIT)

Copyright (c) 2015 Gary Rutland

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2ca2509e87145b4a883b19750a08323a65e5e5314092731b1cf805d2f718a7e?d=identicon)[Alexander Vasyutin](/maintainers/Alexander%20Vasyutin)

### Embed Badge

![Health badge](/badges/alexrvs-yii2-facebook/health.svg)

```
[![Health](https://phpackages.com/badges/alexrvs-yii2-facebook/health.svg)](https://phpackages.com/packages/alexrvs-yii2-facebook)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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