beffroi / framework
An identity provider for the Symfony ecosystem: identity core, OAuth 2.0 / OpenID Connect module, SAML 2.0 module, XML security, the SAML 2.0 model and its bindings, the application built on them, and the terminal client that administers it.
Requires
- php: >=8.4
- ext-dom: *
- ext-intl: *
- ext-libxml: *
- ext-openssl: *
- ext-sodium: *
- ext-zlib: *
- amphp/http-client: ^5.3.2
- amphp/process: ^2.0
- amphp/socket: ^2.3
- bacon/bacon-qr-code: ^3.0
- doctrine/dbal: ^4.6
- doctrine/doctrine-bundle: ^3.4
- doctrine/migrations: ^3.9
- doctrine/orm: ^3.8
- maxmind-db/reader: ^1.14
- paragonie/constant_time_encoding: ^3.1
- psr/clock: ^1.0
- psr/event-dispatcher: ^1.0
- psr/log: ^3.0
- revolt/event-loop: ^1.0
- spomky-labs/aes-key-wrap: ^7.0
- spomky-labs/otphp: ^11.5
- spomky-labs/pki-framework: ^1.2.1
- spomky-labs/web-push-lib: ^3.2
- symfony/clock: 8.2.*
- symfony/config: 8.2.*
- symfony/console: ^8.1
- symfony/dependency-injection: 8.2.*
- symfony/doctrine-bridge: 8.2.*
- symfony/doctrine-dbal-key-management: 8.2.*
- symfony/doctrine-messenger: 8.2.*
- symfony/doctrine-orm-key-management: 8.2.*
- symfony/form: 8.2.*
- symfony/framework-bundle: 8.2.*
- symfony/http-client: 8.2.*
- symfony/http-foundation: 8.2.*
- symfony/http-kernel: 8.2.*
- symfony/key-management: 8.2.*
- symfony/mailer: 8.2.*
- symfony/messenger: 8.2.*
- symfony/mime: 8.2.*
- symfony/notifier: 8.2.*
- symfony/password-hasher: ^8.1
- symfony/process: 8.2.*
- symfony/rate-limiter: 8.2.*
- symfony/routing: 8.2.*
- symfony/runtime: 8.2.*
- symfony/scheduler: 8.2.*
- symfony/security-bundle: 8.2.*
- symfony/security-core: 8.2.*
- symfony/security-csrf: 8.2.*
- symfony/security-http: 8.2.*
- symfony/sweego-notifier: 8.2.*
- symfony/translation: 8.2.*
- symfony/tui: ^8.1
- symfony/twig-bridge: 8.2.*
- symfony/twig-bundle: 8.2.*
- symfony/uid: 8.2.*
- twig/twig: ^3.21
- web-auth/webauthn-lib: ^5.3.12
- web-token/jwt-library: ^4.2
Requires (Dev)
- symfony/aws-key-management: 8.2.*
- symfony/browser-kit: 8.2.*
- symfony/css-selector: 8.2.*
- symfony/hashicorp-vault-key-management: 8.2.*
- symfony/phpunit-bridge: 8.2.*
- symfony/web-profiler-bundle: 8.2.*
- symfony/yaml: 8.2.*
Suggests
None
Provides
None
Conflicts
- symfony/cache-contracts: 3.8.0
- symfony/event-dispatcher-contracts: 3.8.0
- symfony/service-contracts: 3.8.0
Replaces
- beffroi/core: 0.1.x-dev
- beffroi/oidc: 0.1.x-dev
- beffroi/saml: 0.1.x-dev
- beffroi/saml2-bindings: 0.1.x-dev
- beffroi/saml2-model: 0.1.x-dev
- beffroi/xml-security: 0.1.x-dev
- symfony/polyfill-intl-icu: *
This package is auto-updated.
Last update: 2026-11-23 15:17:41 UTC
README
An identity provider for the Symfony ecosystem: OAuth 2.0 and OpenID Connect, and SAML 2.0 both ways, as the identity provider of service providers and as the service provider of upstream identity providers.
| Package | Directory | What it is |
|---|---|---|
beffroi/core |
src/core |
Identity core: tenants, users and where they come from, credentials, linked identities, groups, authentication sessions, keys. Pure PHP. |
beffroi/oidc |
src/oidc |
OAuth 2.0 / OpenID Connect module: clients, authorization requests, grants, tokens, discovery, JWKS, UserInfo, logout. Pure PHP. |
beffroi/saml |
src/saml |
SAML 2.0 module: the identity provider and the service provider of a tenant, their metadata, Single Logout on the session of the core. Pure PHP. |
beffroi/saml2-model |
src/saml2-model |
The SAML 2.0 model: the samlp:, saml: and md: objects of Web Browser SSO and Single Logout, read strictly and validated in code. No HTTP. |
beffroi/saml2-bindings |
src/saml2-bindings |
The HTTP-Redirect and HTTP-POST bindings of SAML 2.0, strings and arrays in and out. No HTTP object. |
beffroi/xml-security |
src/xml-security |
XML security in three namespaces: Core, a safe DOM; Dsig, XML Signature; Enc, XML Encryption. |
beffroi/beffroi |
apps/beffroi |
The application, FrankenPHP: the configuration of the provider, its controllers, its security, its persistence, the login and consent pages. |
beffroi/tui |
apps/tui |
The terminal client of the administration of an instance: it talks to the administration API over HTTP and installs none of the packages above. |
Each directory is split into a read-only mirror, beffroi-auth/<name> (application for apps/beffroi). Issues and pull requests go here.
Requires PHP 8.4 and Symfony 8.2; PHP 8.5 is what runs, locally and in CI. Licensed under MIT.
Development
composer install
(cd apps/beffroi && composer install)
castor phpunit
castor prepare-pr
Every QA task runs inside the ghcr.io/spomky-labs/phpqa image when Docker is available. castor start and castor provision bring up the development stack on https://op.localhost; castor conformance plays the OpenID certification plans against it, castor saml-sp and castor saml-idp play the two SAML roles against SimpleSAMLphp.
The documentation is at doc.beffroi.tech and the website at beffroi.tech. The project has an account on Bluesky and a page on LinkedIn.