PHPackages                             fond-of-oryx/payment-address-restrictions - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. fond-of-oryx/payment-address-restrictions

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

fond-of-oryx/payment-address-restrictions
=========================================

2.0.1(2y ago)0461MITPHPPHP &gt;=8.0

Since Mar 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fond-of-oryx/payment-address-restriction)[ Packagist](https://packagist.org/packages/fond-of-oryx/payment-address-restrictions)[ RSS](/packages/fond-of-oryx-payment-address-restrictions/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

payment address restriction
===========================

[](#payment-address-restriction)

[![license](https://camo.githubusercontent.com/5f4a73da5289eb12664c058b66fd6c399f409cc844e4f9fda81e8d6251ced797/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f666f6e642d6f662d6f7279782f7061796d656e742d616464726573732d7265737472696374696f6e2e737667)](https://packagist.org/packages/fond-of-oryx/payment-address-restriction)

What it does
------------

[](#what-it-does)

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

[](#installation)

```
composer require fond-of-oryx/payment-address-restriction

```

Usage
-----

[](#usage)

register the plugins in your dependency provider

i.E.: Pyz\\Zed\\Payment\\PaymentDependencyProvider.php

```
/**
 * @return array|array
 */
protected function getPaymentMethodFilterPlugins(): array
{
    return [
        ...,
        new CountryRestrictionPaymentMethodFilterPlugin(),
        new IdenticalAddressRestrictionPaymentMethodFilterPlugin(),
    ];
}

```

add the following configuration to your config-file

```
$config[PaymentAddressRestrictionConstants::BLACKLISTED_PAYMENT_COUNTRY_COMBINATIONS] = [
    'payment-method-name' => ['DE', 'AT', 'CH'], // payment method only allowed for DE, AT, CH
];

$config[PaymentAddressRestrictionConstants::BLACKLISTED_PAYMENT_IDENTICAL_ADDRESS_REQUIRED] = [
    'payment-method-name' // shipping- and billing address must equal
];

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~114 days

Total

5

Last Release

1061d ago

Major Versions

1.0.1 → 2.0.02023-01-20

PHP version history (2 changes)1.0.0PHP &gt;=7.3

2.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c8ae669ad5d4e25d1564b2ee381e86fb88b3d9f132040a1a6b642de43b7a417?d=identicon)[daniel-rose](/maintainers/daniel-rose)

---

Top Contributors

[![DerCalli](https://avatars.githubusercontent.com/u/35733274?v=4)](https://github.com/DerCalli "DerCalli (4 commits)")[![SpiderDan98](https://avatars.githubusercontent.com/u/40319023?v=4)](https://github.com/SpiderDan98 "SpiderDan98 (4 commits)")[![julianhyatt](https://avatars.githubusercontent.com/u/54834203?v=4)](https://github.com/julianhyatt "julianhyatt (1 commits)")

### Embed Badge

![Health badge](/badges/fond-of-oryx-payment-address-restrictions/health.svg)

```
[![Health](https://phpackages.com/badges/fond-of-oryx-payment-address-restrictions/health.svg)](https://phpackages.com/packages/fond-of-oryx-payment-address-restrictions)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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