PHPackages                             mageprince/magento2-forcelogin - 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. mageprince/magento2-forcelogin

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

mageprince/magento2-forcelogin
==============================

Magento2 Force Login Module

1.0.2(8y ago)57013[4 issues](https://github.com/mageprince/magento2-forcelogin/issues)proprietaryPHP

Since Mar 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/mageprince/magento2-forcelogin)[ Packagist](https://packagist.org/packages/mageprince/magento2-forcelogin)[ RSS](/packages/mageprince-magento2-forcelogin/feed)WikiDiscussions master Synced 2mo ago

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

Magento2 Force Login
====================

[](#magento2-force-login)

IN DEVELOPMENT
==============

[](#in-development)

NOTE: DONT USE THIS MODULE IN LIVE SITE

The Force Login extension for Magento 2 force customer to login to access pages which is added from admin. You can also force login for specific customer group and storeview.

Now you can set only homepage can access without login from configurations.

**Magento Market Place Link:**

Installation Instruction
========================

[](#installation-instruction)

- Copy the content of the repo to the **app/code/Prince/Forcelogin**
- Run command: **php bin/magento setup:upgrade**
- Run command: **php bin/magento setup:static-content:deploy**
- Now flush cache: **php bin/magento cache:flush**

Contribution
============

[](#contribution)

Want to contribute to this extension? The quickest way is to [open a pull request](https://help.github.com/articles/about-pull-requests/) on GitHub.

Support
=======

[](#support)

If you encounter any problems or bugs, please [open an issue](https://github.com/mageprince/magento2-forcelogin/issues) on GitHub.

Screenshot
==========

[](#screenshot)

### Admin Grid

[](#admin-grid)

[![Admin Grid](https://raw.githubusercontent.com/mageprince/all-module-screenshots/master/Forcelogin/admin-grid.png)](https://raw.githubusercontent.com/mageprince/all-module-screenshots/master/Forcelogin/admin-grid.png)

### Add/Update URL

[](#addupdate-url)

[![Add/Update URL](https://raw.githubusercontent.com/mageprince/all-module-screenshots/master/Forcelogin/add-update-url.png)](https://raw.githubusercontent.com/mageprince/all-module-screenshots/master/Forcelogin/add-update-url.png)

### Settings

[](#settings)

[![Setting](https://raw.githubusercontent.com/mageprince/all-module-screenshots/master/Forcelogin/admin-configurations.png)](https://raw.githubusercontent.com/mageprince/all-module-screenshots/master/Forcelogin/admin-configurations.png)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance4

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

2986d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/874d990fdd2aec1749284bd4fa6a67bd59c53b4d30bd8df67ea8fa00cff70b44?d=identicon)[mageprince](/maintainers/mageprince)

---

Top Contributors

[![pprincepatel](https://avatars.githubusercontent.com/u/110395175?v=4)](https://github.com/pprincepatel "pprincepatel (15 commits)")[![mageprince](https://avatars.githubusercontent.com/u/24751863?v=4)](https://github.com/mageprince "mageprince (13 commits)")[![princektpl](https://avatars.githubusercontent.com/u/55445358?v=4)](https://github.com/princektpl "princektpl (2 commits)")

---

Tags

forceloginfree-extensionmagento2magento2-extension

### Embed Badge

![Health badge](/badges/mageprince-magento2-forcelogin/health.svg)

```
[![Health](https://phpackages.com/badges/mageprince-magento2-forcelogin/health.svg)](https://phpackages.com/packages/mageprince-magento2-forcelogin)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[bitexpert/magento2-force-customer-login

The Force Login module for Magento2 redirects a storefront visitor to the Magento2 Frontend login page, if the visitor is not logged in. It is possible to configure the whitelisted urls to add custom definitions.

171409.9k](/packages/bitexpert-magento2-force-customer-login)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3138.1k](/packages/fredden-magento2-module-javascript-error-reporting)

PHPackages © 2026

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