PHPackages                             sofyco/facebook-security-voter-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sofyco/facebook-security-voter-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

sofyco/facebook-security-voter-bundle
=====================================

Symfony Facebook Security Voter Bundle

00PHPCI passing

Pushed todayCompare

[ Source](https://github.com/sofyco/facebook-security-voter-bundle)[ Packagist](https://packagist.org/packages/sofyco/facebook-security-voter-bundle)[ RSS](/packages/sofyco-facebook-security-voter-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersionsUsed By (0)

Facebook Security Voter Bundle
==============================

[](#facebook-security-voter-bundle)

[![CI](https://github.com/sofyco/facebook-security-voter-bundle/actions/workflows/ci.yaml/badge.svg)](https://github.com/sofyco/facebook-security-voter-bundle/actions/workflows/ci.yaml)[![codecov](https://camo.githubusercontent.com/de8a531a06babde67afb5e3318953e94edf77b969746ea1d17471f43bcd51477/68747470733a2f2f636f6465636f762e696f2f67682f736f6679636f2f66616365626f6f6b2d73656375726974792d766f7465722d62756e646c652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/sofyco/facebook-security-voter-bundle)[![stable](https://camo.githubusercontent.com/7eda059fc6024978708249f5382e3f662525a0341c62fb0fb88687f96fd35b83/687474703a2f2f706f7365722e707567782e6f72672f736f6679636f2f66616365626f6f6b2d73656375726974792d766f7465722d62756e646c652f76)](https://packagist.org/packages/sofyco/facebook-security-voter-bundle)

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

[](#installation)

```
composer req sofyco/facebook-security-voter-bundle
```

Configuration
-------------

[](#configuration)

The bundle exposes a `facebook_security_voter` configuration node with two required, non-empty string arguments:

- `secret` — Facebook App Secret; verifies the `x-hub-signature-256`HMAC-SHA256 header on `POST` webhooks.
- `signature` — verify token; verifies the `hub_verify_token` query parameter on `GET` verification requests.

```
# config/packages/facebook_security_voter.yaml
facebook_security_voter:
    secret: '%env(FACEBOOK_APP_SECRET)%'
    signature: '%env(FACEBOOK_VERIFY_TOKEN)%'
```

Both options are resolved into the `FacebookWebhookVoter` constructor (`$secret` and `$signature`); the `RequestStack` argument is autowired.

Usage
-----

[](#usage)

The bundle registers a security voter (`FacebookWebhookVoter`) that grants access when the current request is a legitimate Facebook webhook call:

- `GET` requests are validated against the `hub_verify_token` query parameter;
- `POST` requests are validated against the `x-hub-signature-256` HMAC-SHA256 header.

Use the `FacebookWebhookVoter::SIGNATURE` attribute to protect a controller:

```
use Sofyco\Bundle\FacebookSecurityVoterBundle\Security\Voter\FacebookWebhookVoter;
use Symfony\Component\Security\Http\Attribute\IsGranted;

#[IsGranted(FacebookWebhookVoter::SIGNATURE)]
public function __invoke(): Response
{
    // ...
}
```

###  Health Score

20

↑

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity8

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![khaperets](https://avatars.githubusercontent.com/u/2507262?v=4)](https://github.com/khaperets "khaperets (2 commits)")

### Embed Badge

![Health badge](/badges/sofyco-facebook-security-voter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sofyco-facebook-security-voter-bundle/health.svg)](https://phpackages.com/packages/sofyco-facebook-security-voter-bundle)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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