PHPackages                             davidrobert/magento2-b2b - 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. davidrobert/magento2-b2b

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

davidrobert/magento2-b2b
========================

Restrict a website to a customers' group

684PHP

Since Nov 29Pushed 8y ago2 watchersCompare

[ Source](https://github.com/davidroberto/magento2-b2b)[ Packagist](https://packagist.org/packages/davidrobert/magento2-b2b)[ RSS](/packages/davidrobert-magento2-b2b/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

magento2-b2b
============

[](#magento2-b2b)

Restrict access to a website for a group of customers

Getting Started
---------------

[](#getting-started)

If you don't already have a multi-websites Magento, you first you need to create a new website (admin-&gt;stores). Then install the module from Composer (the module is listed in Packagist), or clone it from Github. You'll have a new "B2B" tab in the configuration page, where you'll be able to select a website and a group of customers (a "wholesale" groupe for example).

Save it, and it's done! The website selected is now accessible only by the customers from the selected group of customers. If the user is not identified and try to access the website, he'll be redirected to the login form. If, after loggin, it doesn't belong to the corrected group, he'll be redirected to the default website.

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/710defec0b4ffc704706639f724a51b22cf417ba36af7307928fcdc76612051e?d=identicon)[david\_roberto](/maintainers/david_roberto)

---

Top Contributors

[![davidroberto](https://avatars.githubusercontent.com/u/12612695?v=4)](https://github.com/davidroberto "davidroberto (2 commits)")

---

Tags

b2bmagento2magento2-extensionmagento2-modulewholesale

### Embed Badge

![Health badge](/badges/davidrobert-magento2-b2b/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M100](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M117](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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