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. [Security](/categories/security)
4. /
5. sofyco/facebook-security-voter-bundle

ActiveSymfony-bundle[Security](/categories/security)

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

Symfony Facebook Security Voter Bundle

1.0.0(1mo ago)091MITPHPPHP ^8.5CI passing

Since Jul 1Pushed 1mo agoCompare

[ Source](https://github.com/sofyco/facebook-security-voter-bundle)[ Packagist](https://packagist.org/packages/sofyco/facebook-security-voter-bundle)[ Docs](https://github.com/sofyco/facebook-security-voter-bundle)[ GitHub Sponsors](https://github.com/sofyco)[ RSS](/packages/sofyco-facebook-security-voter-bundle/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (5)Versions (2)Used 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

43

—

FairBetter than 89% of packages

Maintenance90

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

45d ago

### 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)")

---

Tags

phpsymfonybundlefacebooksecurityvoter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### 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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M423](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M234](/packages/sulu-sulu)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

516113.7k3](/packages/web-auth-webauthn-framework)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

589701.7k2](/packages/scheb-2fa)

PHPackages © 2026

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