PHPackages                             telixj/phpbb-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. telixj/phpbb-bundle

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

telixj/phpbb-bundle
===================

Symfony integration with phpBB

3.0.2(1y ago)1325GPL-3.0-or-laterPHPPHP ^8.2

Since Jul 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TeLiXj/PhpbbBundle)[ Packagist](https://packagist.org/packages/telixj/phpbb-bundle)[ RSS](/packages/telixj-phpbb-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (9)Used By (0)

phpBB Bundle
============

[](#phpbb-bundle)

Symfony integration with phpBB. Use phpBB as a authentication provider and share its sessions.

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

[](#configuration)

First of all, make sure in your application to ignore the phpBB tables, by using (This is needed for each entity manager):

```
doctrine:
    dbal:
        schema_filter: ~^(?!phpbb_)~
```

where phpbb\_ is your table prefix for tables generated by phpBB. Not making this configuration change can cause your forum tables to be deleted!

Then, if you have your forum in other database, add a custom entity\_manager and dbal to your doctrine connections:

```
doctrine:
    dbal:
        default_connection: default
        connections:
            acme: # this is an example for your website's database but it's not required
                driver:   "%database_driver%"
                host:     "%database_host%"
                port:     "%database_port%"
                dbname:   "%database_name%"
                user:     "%database_user%"
                password: "%database_password%"
                charset:  "UTF8"
            forum:
                driver:   "%forum_database_driver%"
                host:     "%forum_database_host%"
                port:     "%forum_database_port%"
                dbname:   "%forum_database_name%"
                user:     "%forum_database_user%"
                password: "%forum_database_password%"
                charset:  "UTF8"

    orm:
        entity_managers:
            default: # same here, not required, but you will probably have this in your configuration
                connection: default
            forum:
                connection: forum
                mappings:
                    PhpbbBundle: ~
```

Then add the bundle configuration to `config/packages/phpbb.yaml`

```
phpbb:
    session:
        cookie_name: "phpbb_foo" # must match your forum admin cookie name configuration
        login_page: "ucp.php?mode=login" # your login page, by default phpbb login page but you can use a custom page
        force_login: false # if true, anonymous users will be redirected to the login page
    database:
        entity_manager: "forum" # must match the key bellow doctrine.orm.entity_managers
        prefix: "phpbb_" # change this if you do not use the default "phpbb_" prefix
    roles: #relation between group_id from groups table of phpBB and roles of your application
        1: anonymous #GUESTS
        2: user #REGISTERED
        4: moderator #GLOBAL_MODERATORS
        5: administrator #ADMINISTRATORS
        6: bot #BOTS
        7: app_role_name #example of new group create in phpBB and new role in your application
        8: administrator #you can assing same application roles to various phpBB groups
```

Update your `config/packages/security.yaml` to match this:

```
security:
    enable_authenticator_manager: true
    firewalls:
        main:
            pattern: ^/
            stateless: true # stateless should be set to true, or your symfony user may be stored in the session even if you logged out from the phpbb instance
            custom_authenticators:
                - TeLiXj\PhpbbBundle\Security\PhpbbSessionAuthenticator
```

And to use remember me function you must edit the `ucp.php` in your forum to enable the redirection after detect a correct session key. Change the line `redirect(append_sid("{$phpbb_root_path}index.$phpEx"));` to `redirect($request->variable('redirect', append_sid("{$phpbb_root_path}index.$phpEx")));`

Missing functionality
---------------------

[](#missing-functionality)

There are some few edge functionality missing:

- `Session IP validation` is considered as "A.B.C", no matter what you specified in your Admin Control Panel configuration

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance42

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50.7% 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 ~447 days

Recently: every ~148 days

Total

8

Last Release

469d ago

Major Versions

v1.1 → v2.02023-05-07

v2.0.2 → v3.02023-12-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5a0d24ad047e9c7acc0c5f9122617ab0fc7033b35356863bbb246ccfea30618?d=identicon)[telixj@gmail.com](/maintainers/telixj@gmail.com)

---

Top Contributors

[![paul999](https://avatars.githubusercontent.com/u/65767?v=4)](https://github.com/paul999 "paul999 (71 commits)")[![TeLiXj](https://avatars.githubusercontent.com/u/5677943?v=4)](https://github.com/TeLiXj "TeLiXj (44 commits)")[![michaelcullum](https://avatars.githubusercontent.com/u/211740?v=4)](https://github.com/michaelcullum "michaelcullum (14 commits)")[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (5 commits)")[![jewome62](https://avatars.githubusercontent.com/u/472429?v=4)](https://github.com/jewome62 "jewome62 (5 commits)")[![judu](https://avatars.githubusercontent.com/u/221365?v=4)](https://github.com/judu "judu (1 commits)")

---

Tags

authenticationintegrationphpbbsessionssymfonysymfonyAuthenticationphpbbintergrationsessions

### Embed Badge

![Health badge](/badges/telixj-phpbb-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/telixj-phpbb-bundle/health.svg)](https://phpackages.com/packages/telixj-phpbb-bundle)
```

###  Alternatives

[scheb/2fa

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

578630.7k1](/packages/scheb-2fa)[scheb/2fa-bundle

A generic interface to implement two-factor authentication in Symfony applications

7014.0M62](/packages/scheb-2fa-bundle)[auth0/symfony

Symfony SDK for Auth0 Authentication and Management APIs.

128738.1k](/packages/auth0-symfony)[kayue/kayue-wordpress-bundle

Support for authenticating WordPress users in Symfony2.

10125.9k](/packages/kayue-kayue-wordpress-bundle)

PHPackages © 2026

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