PHPackages                             l91/sulu-website-user-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. l91/sulu-website-user-bundle

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

l91/sulu-website-user-bundle
============================

Sulu Bundle for Website Login, Registration, Double Opt-In, Password Forget/Reset, Profile

1.0.0-RC4(10y ago)1731[18 issues](https://github.com/alexander-schranz/sulu-website-user-bundle/issues)MITPHPPHP ^5.5 || ^7.0

Since Feb 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexander-schranz/sulu-website-user-bundle)[ Packagist](https://packagist.org/packages/l91/sulu-website-user-bundle)[ Docs](https://github.com/alexander-schranz/sulu-website-user-bundle)[ RSS](/packages/l91-sulu-website-user-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Sulu Website User Bundle
========================

[](#sulu-website-user-bundle)

WE MOVED!!!
-----------

[](#we-moved)

We did a complete rewrite of the bundle for sulu 1.3.0. Use the following bundle for all future uses:

---

When use it?
------------

[](#when-use-it)

You use Sulu to build an application, intranet, shop, ... where users can login, register and need to manage their contact data on the website. This bundle will give all basics you need:

- Website Security User Role
- Login Form
- Registration Form
- Password Forget / Reset Form
- Profile Form
- Double Opt-In, Single Opt-In or Admin activation
- Notification Emails for every action (User + Admin)
- Multiple WebSpace Support

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

[](#installation)

### 0. Install over composer

[](#0-install-over-composer)

```
composer require l91/sulu-website-user-bundle:~1.0
composer install
```

### 1. Add Security Bundle to WebsiteKernel

[](#1-add-security-bundle-to-websitekernel)

`app/WebsiteKernel.php`:

```
$bundles[] = new Symfony\Bundle\SecurityBundle\SecurityBundle();
```

### 2. Add Bundle to AbstractKernel:

[](#2-add-bundle-to-abstractkernel)

`app/AbstractKernel.php`:

```
new L91\Sulu\Bundle\WebsiteUserBundle\L91SuluWebsiteUserBundle(),
```

### 3. Add new routes to routing config

[](#3-add-new-routes-to-routing-config)

`app/config/website/routing.yml` and `app/config/admin/routing.yml`:

```
l91_sulu_website_user:
    type: portal
    resource: "@L91SuluWebsiteUserBundle/Resources/config/routing.yml"
```

### 4. Add Security system to your webspace

[](#4-add-security-system-to-your-webspace)

`app/Resources/webspaces/.xml`:

```

        Website

```

### 5. Update your website security file

[](#5-update-your-website-security-file)

`app/config/website/security.yml`:

Example:

```
security:
    session_fixation_strategy: none

    access_decision_manager:
        strategy: affirmative

    acl:
        connection: default

    encoders:
        Sulu\Bundle\SecurityBundle\Entity\User:
            algorithm: sha512
            iterations: 5000
            encode_as_base64: false

    providers:
        sulu:
            id: sulu_security.user_provider

    access_control:
        - { path: /profile, roles: ROLE_USER }

    firewalls:
        website:
            pattern: (login|profile|logout)
            anonymous: ~
            form_login:
                login_path: l91_sulu_website_user.login
                check_path: l91_sulu_website_user.login
            logout:
                path: l91_sulu_website_user.logout
                target: l91_sulu_website_user.login

sulu_security:
    checker:
        enabled: true
```

### 6. Create your Templates

[](#6-create-your-templates)

Create the following templates in your theme under `/templates/security`. (see  as examples)

- `login.html.twig`
- `registration.html.twig`
- `confirmation.html.twig`
- `password-forget.html.twig`
- `password-reset.html.twig`
- `profile.html.twig`
- `emails/registration-user.html.twig`
- `emails/password-forget-user.html.twig`
- `embed/login.html.twig`

**Update Liip Theme Bundle with your Bundle**

[sulu/sulu#1966](https://github.com/sulu/sulu/issues/1966)

`app/config/config.yml`:

```
liip_theme:
    path_patterns:
        app_resource:
            - %%app_path%%/../../src/Client/Bundle/WebsiteBundle/Resources/themes/%%current_theme%%/%%template%%
```

### 7. Set Config

[](#7-set-config)

`app/config/config.yml`:

**Basic:**

```
l91_sulu_website_user:
    webspaces:
        :
            from: no-reply@example.at
```

**Extended:**

```
l91_sulu_website_user:
    webspaces:
        :
            from: no-reply@example.at
            to: ~
            reply_to: ~
            subject: ~
            role: Website
            form_types:
                contact: L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\ContactType
                contact_address: L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\ContactAddressType
                address: L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\ContactAddressType
            login:
                from: ~
                to: ~
                reply_to: ~
                subject: ~
                templates:
                    form: '::templates/security/login.html.twig'
                    form_embed: '::templates/security/embed/login.html.twig'
                    admin: ~
                    user: ~
            registration:
                from: ~
                to: ~
                reply_to: ~
                subject: ~
                activate_user: false
                form_type: 'L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\RegistrationType'
                templates:
                    form: '::templates/security/registration.html.twig'
                    admin: ~
                    user: '::templates/security/emails/registration-user.html.twig'
            confirmation:
                from: ~
                to: ~
                reply_to: ~
                subject: ~
                activate_user: true
                form_type: 'L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\ConfirmationType'
                templates:
                    form: '::templates/security/confirmation.html.twig'
                    admin: ~
                    user: ~
            password_forget:
                from: ~
                to: ~
                reply_to: ~
                subject: ~
                form_type: 'L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\PasswordForgetType'
                templates:
                    form: '::templates/security/password-forget.html.twig'
                    admin: ~
                    user: '::templates/security/emails/password-forget-user.html.twig'
            password_reset:
                from: ~
                to: ~
                reply_to: ~
                subject: ~
                form_type: 'L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\PasswordResetType'
                templates:
                    form: '::templates/security/password-reset.html.twig'
                    admin: ~
                    user: ~
            profile:
                from: ~
                to: ~
                reply_to: ~
                subject: ~
                form_type: 'L91\Sulu\Bundle\WebsiteUserBundle\Form\Type\ProfileType'
                templates:
                    form: '::templates/security/profile.html.twig'
                    admin: ~
                    user: ~
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.1% 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 ~37 days

Total

4

Last Release

3677d ago

PHP version history (2 changes)1.0.0-RC1PHP &gt;=5.5

1.0.0-RC3PHP ^5.5 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1698337?v=4)[Alexander Schranz](/maintainers/alexander-schranz)[@alexander-schranz](https://github.com/alexander-schranz)

---

Top Contributors

[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (60 commits)")[![Kharestani](https://avatars.githubusercontent.com/u/5319248?v=4)](https://github.com/Kharestani "Kharestani (14 commits)")

### Embed Badge

![Health badge](/badges/l91-sulu-website-user-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/l91-sulu-website-user-bundle/health.svg)](https://phpackages.com/packages/l91-sulu-website-user-bundle)
```

###  Alternatives

[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29734.8k](/packages/sulu-skeleton)[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)[sulu/community-bundle

Sulu Bundle for building a community

33111.1k](/packages/sulu-community-bundle)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

56140.6k2](/packages/sulu-headless-bundle)

PHPackages © 2026

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