PHPackages                             xanily/wcf-sessions-auth-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. xanily/wcf-sessions-auth-bundle

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

xanily/wcf-sessions-auth-bundle
===============================

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

2.1.1(7y ago)039MITPHP

Since Jun 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AliveShiro/WCFSessionsAuthBundle)[ Packagist](https://packagist.org/packages/xanily/wcf-sessions-auth-bundle)[ Docs](https://www.faldoria.de)[ RSS](/packages/xanily-wcf-sessions-auth-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (9)Versions (9)Used By (0)

WCF Sessions Auth Bundle
========================

[](#wcf-sessions-auth-bundle)

This allows you to use WCF as a authentication provider in Symfony &gt;= 4 and share its sessions.

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

[](#configuration)

File `config/packages/wcf_sessions_auth.yaml`:

```
wcf_sessions_auth:
  session:
    cookie_prefix: "wsc_"
    login_page: "/login"
    target_page: "/"
    force_login: false
    ip_check: 0
  database:
    entity_manager: "forum"
    table_prefix: "wcf1_"

  roles:
    1: ROLE_ANYONE
    2: ROLE_GUEST
    3: ROLE_USER
    4: ROLE_ADMIN
```

File `config/packages/security.yaml`:

```
security:
providers:
  wcf:
    id: "wcf.sessionsauthbundle.wcf_user_provider"

encoders:
  xanily\WCFSessionsAuthBundle\Entity\WcfUser:
    id: wcf.sessionsauthbundle.wcf_encoder
firewalls:
  main:
    anonymous: ~

    # stateless should be set to true, or your symfony user may be stored in the session even if you logged out from the wcf instance
    stateless: true

    guard:
      authenticators:
        - "wcf.sessionsauthbundle.wcf_session_guard"
        - "wcf.sessionsauthbundle.wcf_authenticator"

      entry_point: "wcf.sessionsauthbundle.wcf_authenticator"

# Example configuration for admin only access to www.example.com/admin
access_control:
  - { path: ^/admin, roles: [ROLE_ADMIN], host: "www.example.com" }
```

Example config for `config/packages/doctrine.yaml`:

```
doctrine:
  dbal:
    default_connection: default

    connections:
      default:
        driver: 'pdo_mysql'
        server_version: '5.7'
        charset: utf8mb4
        url: '%env(resolve:DATABASE_URL)%'
        schema_filter: ~^(?!wcf1_)~

      board:
        driver: 'pdo_mysql'
        server_version: '5.7'
        charset: utf8mb4
        url: '$env(resolve:BOARD_DATABASE_URL)%'

  orm:
    default_entity_manager: default
    auto_generate_proxy_classes: '%kernel.debug%'

    entity_managers:
      default:
        connection: default
        naming_strategy: doctrine.ormnaming_strategy.underscore
        auto_mapping: true
        mappings:
          App:
            is_bundle: false
            type: annotation
            dir: '%kernel.project_dir%/src/Entity'
            prefix: 'App\Entity'
            alias: App

      board:
        connection: board
        mappings:
          WCFSessionsAuthBundle: ~
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~27 days

Recently: every ~45 days

Total

8

Last Release

2736d ago

Major Versions

1.0.9 → 2.0.02018-07-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/6abba977d8bac5b3822956d7b86b014d13301f49390447e93e0587a84b58f537?d=identicon)[AliveShiro](/maintainers/AliveShiro)

---

Top Contributors

[![xanily](https://avatars.githubusercontent.com/u/1019801?v=4)](https://github.com/xanily "xanily (6 commits)")

---

Tags

Bridgeintergrationwcf

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xanily-wcf-sessions-auth-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xanily-wcf-sessions-auth-bundle/health.svg)](https://phpackages.com/packages/xanily-wcf-sessions-auth-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[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.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)

PHPackages © 2026

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