PHPackages                             bitexpert/sylius-force-login-plugin - 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. bitexpert/sylius-force-login-plugin

ActiveSylius-plugin[Authentication &amp; Authorization](/categories/authentication)

bitexpert/sylius-force-login-plugin
===================================

Sylius Force Login Plugin

v0.8.0(11mo ago)63.1k↓20%1[5 PRs](https://github.com/bitExpert/sylius-force-login/pulls)MITPHPPHP ^8.2CI passing

Since Jun 14Pushed 2w ago2 watchersCompare

[ Source](https://github.com/bitExpert/sylius-force-login)[ Packagist](https://packagist.org/packages/bitexpert/sylius-force-login-plugin)[ RSS](/packages/bitexpert-sylius-force-login-plugin/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (24)Versions (25)Used By (0)

Force Login Plugin for Sylius
=============================

[](#force-login-plugin-for-sylius)

[![Build Status](https://github.com/bitExpert/sylius-force-login/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/bitExpert/sylius-force-login/actions)[![installs on Packagist](https://camo.githubusercontent.com/2892014ac6e37f18112b64da78ce283872ecee1ab1d54e30b24940818ff6a4b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6269746578706572742f73796c6975732d666f7263652d6c6f67696e2d706c7567696e)](https://packagist.org/packages/bitexpert/sylius-force-login-plugin/)[![Mastodon Follow](https://camo.githubusercontent.com/c2abd2d790b2fdf042e992e8872c59044086bdb16b119a61d8526d6238c3c2ba/68747470733a2f2f696d672e736869656c64732e696f2f6d6173746f646f6e2f666f6c6c6f772f3130393430383638313234363937323730303f646f6d61696e3d68747470733a2f2f726865696e6e65636b61722e736f6369616c)](https://rheinneckar.social/@bitexpert)

The **Force Login** Plugin for *Sylius* allows you to restrict which pages a visitor is able to see. Visitors get redirected to the login page if the page is not marked visitable. The **Force Login** Module for *Sylius* is especially useful for merchants serving only a specific group of users, e.g. enterprise related business partners and need to ensure that only those users are able to browse the website or the product catalog.

Features:
---------

[](#features)

- Force your guest visitors to log in first (or register), before allowing them to visit your pages and catalog
- Administration: Manage the whitelist rules by the GUI in the administration area
- Whitelisting: Define url rules as pattern to define which pages guest visitors can visit without logging in first
- Multistore-Support: Define if whitelist rules either apply globally or for specific stores

Requirements:
-------------

[](#requirements)

- PHP 8.2 or higher
- Sylius 2.0 or higher

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

[](#installation)

1. Install the plugin via Composer

```
composer require bitexpert/sylius-force-login-plugin
```

2. Enable the plugin

```
